Closed mischnic closed 2 years ago
Any updates on this PR?
Any news? This bug is seriously blocking! 😰
Maybe someone could check this library to be inspired https://github.com/nico-jacobs/postcss-remove-nested-calc It works, just tried
I don't think approach is going to work, because it adds round brackets where there aren't any in the source, which can change the meaning, and it also add brackets around values which do not contain any variables and so could be simplified.
Closes https://github.com/postcss/postcss-calc/issues/115
One thing that might be causing old tests to fail is that
calc
(and the postcss-calc parser) is probably left-associative by default, so no parentheses are needed in cases like(a - b) - c
.