Closed maranomynet closed 1 year ago
This valid CSS code:
body { width: calc( var(--a, var(--b, var(--c))) + 10px ); }
Triggers this error in postcss-calc@7.0.4:
postcss-calc@7.0.4
Stack: JisonParserError: Parse error on line 1: var(--a, var(--b, var(--c))) + 10px ---------------------------^ Expecting end of input, "ADD", "SUB", "MUL", "DIV", got unexpected "RPAREN"
Whereas this gets parsed correctly:
body { width: calc( var(--a, var(--b)) + 10px ); }
PR welcome
Still throws a warning even though it does not crash in 8.2
This is reported and being discussed in #104
This valid CSS code:
Triggers this error in
postcss-calc@7.0.4
:Whereas this gets parsed correctly: