Open perqin opened 3 years ago
In 8.2, it still fails to parse, but at least does not crash.
Moving the UNKNOWN_DIMENSION
before NUMBER
in the lexer solves this issue, but then it prevents numbers with exponents to be reduced.
same problem
I’m having the issue with relatively new cqi
unit :
Message:
Parse error on line 1:
-0.9375rem + 12.5cqi
---------------^
Expecting end of input, "RPAREN", "ADD", "SUB", "MUL", "DIV", got unexpected "UNKNOWN_DIMENSION"
Details:
hash: [object Object]
postcssNode: padding:clamp(0.625rem, calc(-0.9375rem + 12.5cqi), 1.875rem)
postcss-calc leaves integer with unknown unit untouched, but when it comes to floating number, it fails.
Here's the error log: