File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -3338,8 +3338,8 @@ CssCheckableValue mathfunctionround() :
3338
3338
}
3339
3339
{
3340
3340
( n=<FUNCTIONROUND> { c = new CssMathFunction(ac, n.image); }
3341
- ( <S> )* ( LOOKAHEAD(2) v=mathsum() { c.addValue(v) ; }
3342
- | n=<IDENT> { c.addValue(CssIdent.getIdent(convertIdent(n.image)) ); } )
3341
+ ( <S> )* ( LOOKAHEAD(2) n=<IDENT> { c.addValue(CssIdent.getIdent(convertIdent(n.image))) ; }
3342
+ | v=mathsum() { c.addValue(v ); } )
3343
3343
( <S> )* ( <COMMA> ( <S> )* v=mathsum() {
3344
3344
c.addValue(v);
3345
3345
} ( <S> )* )* <RPAREN> ) {
Original file line number Diff line number Diff line change @@ -278,6 +278,15 @@ private void _computeResultingTypeRound(boolean is_final)
278
278
}
279
279
if (vsize == 2 ) {
280
280
valtype1 = values .get (0 ).getType ();
281
+ // parsing artefact
282
+ if (valtype1 == CssTypes .CSS_IDENT ) {
283
+ try {
284
+ CssNumber n = new CssNumber ();
285
+ n .set (values .get (0 ).getIdent ().toString (), ac );
286
+ valtype1 = CssTypes .CSS_NUMBER ;
287
+ } catch (Exception ignored ) {
288
+ }
289
+ }
281
290
valtype2 = values .get (1 ).getType ();
282
291
} else { // 3 values
283
292
CssValue v = values .get (0 );
You can’t perform that action at this time.
0 commit comments