Closed ludofischer closed 2 years ago
fix: respect CSS var when reducing
Fix https://github.com/cssnano/cssnano/issues/1235
Preserve the parentheses around a math expression that contains a var() function call, to guarantee that the expression value stays the same.
var()
The CSS custom properties might contain an addition or subtraction, so even distributing multiplication or division is not safe.
fix: respect CSS var when reducing
Fix https://github.com/cssnano/cssnano/issues/1235
Preserve the parentheses around a math expression that contains a
var()
function call, to guarantee that the expression value stays the same.The CSS custom properties might contain an addition or subtraction, so even distributing multiplication or division is not safe.