Skip to content

Commit 6091985

Browse files
committed
change grammar to allow ratio as a value (need testing for interaction with '/')
1 parent 6a2f0b5 commit 6091985

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

org/w3c/css/parser/analyzer/CssParser.jj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2821,7 +2821,9 @@ void term(CssExpression exp) :
28212821
}
28222822
{
28232823
( ( ( operator=unaryOperator() )?
2824-
( n=<NUMBER> { setValue(new CssNumber(), exp, operator, n, NUMBER); }
2824+
( ( LOOKAHEAD( <NUMBER> ( <S> )* "/" ) ratio(exp, operator)
2825+
| n=<NUMBER> { setValue(new CssNumber(), exp, operator, n, NUMBER); }
2826+
)
28252827
| n=<PERCENTAGE> { setValue(new CssPercentage(), exp, operator, n, PERCENTAGE); }
28262828
| n=<RELFONTLENGTH> { setValue(new CssLength(), exp, operator, n, RELFONTLENGTH); }
28272829
| n=<RELVIEWLENGTH> { setValue(new CssLength(), exp, operator, n, RELVIEWLENGTH); }

0 commit comments

Comments
 (0)