Issue with Minify CSS Files option and CSS Custom Properties
-
Hello team,
We recently discovered that if the Minify CSS Files option is enabled it starts to remove the unit from a CSS Variable fallback.It should be like this
margin: var(--margin, 0px)but when this option is enabled it makes it like thismargin: var(--margin, 0)– without unit.
To be honest this is a bad practice to remove the unit.In some cases where we make calculations with
calc()– this breaks everything because the calc function doesn’t know what units to take in consideration.Could you please take a closer look on this and let us know if you could fix this issue?
Thank you.
The topic ‘Issue with Minify CSS Files option and CSS Custom Properties’ is closed to new replies.