CSS optimizing removes necessary spaces from calc-function
-
Hi,
it seems, that enabling and inlining CSS does remove all spaces from the CSS classes. But the calc-function needs these spaces, otherwise the browers are not able to interpret the values correctly.So, for short demonstration: calc(100% + 120px) becomes calc(100%+120px) after activation and this leads to an invalid property value, so it’s not working anymore. Is any fix existing for this, to prevent the minification for these cases?
Thanks a lot!
Edit: I’m sorry, seems, that this problem is caused by W3 Total Cache, not by your plugin. I’m not able to remove the thread, so I’ve marked it as resolved.
Edit 2: If anyone is struggling with the same issue, the fix (for the moment) will be: Add * 1 to your calc-function, so, in my example, the working code will be:
width: calc(100% + 120px * 1).
- The topic ‘CSS optimizing removes necessary spaces from calc-function’ is closed to new replies.