CSS minify breaks Calc subtract operation in CSS
-
I was super excited to use Autoptimize’s “inline above the fold css” option, but it mysteriously broke the grid on my site. A bit of sleuthing shows that the CSS minify function removes a necessary whitespace after a minus sign.
So this:
width: calc(33.33333% - ((0.75em*2)/3));Becomes this:
width: calc(33.33333% -((0.75em*2)/3));Which the browser thinks is negative instead of subtraction.
Can you fix this?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘CSS minify breaks Calc subtract operation in CSS’ is closed to new replies.