Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Handle 'grad' correctly in lists (#18687)
Browse files Browse the repository at this point in the history
Change-Id: I6a81ec9686aba32579ecde04493f4a904dea9b6b
  • Loading branch information
Artur- committed Aug 31, 2015
1 parent 5b4be83 commit 1a2735c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/javacc/com/vaadin/sass/internal/Parser.jj
Original file line number Diff line number Diff line change
Expand Up @@ -2512,7 +2512,7 @@ List<SassListItem> numberTerm(char op) :
| n=<RAD>
{ result = LexicalUnitImpl.createRAD(n.beginLine, n.beginColumn, number(op, n, 3)); }
| n=<GRAD>
{ result = LexicalUnitImpl.createGRAD(n.beginLine, n.beginColumn, number(op, n, 3)); }
{ result = LexicalUnitImpl.createGRAD(n.beginLine, n.beginColumn, number(op, n, 4)); }
| n=<SECOND>
{ result = LexicalUnitImpl.createS(n.beginLine, n.beginColumn, number(op, n, 1)); }
| n=<MS>
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/automatic/css/bourboun-derived-tests.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.foo {
units: 1px, 1cm, 1mm, 1%, 1ch, 1pica, 1in, 1em, 1rem, 1pt, 1pc, 1ex, 1vw, 1vh, 1vmin, 1vmax, 1deg, 1rad, 1grad, 1turn;
}
6 changes: 6 additions & 0 deletions src/test/resources/automatic/scss/bourboun-derived-tests.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$units: 1px, 1cm, 1mm, 1%, 1ch, 1pica, 1in, 1em, 1rem, 1pt, 1pc, 1ex, 1vw, 1vh, 1vmin, 1vmax, 1deg, 1rad, 1grad, 1turn;

.foo {
units: $units;
}

0 comments on commit 1a2735c

Please sign in to comment.