-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS minification breaks calc(), vendor update required #86
Comments
Not sure whether I got it right in Slack: Is the library I referenced not the one we use? If it is not, the behavior (spaces being stripped) is still existent in WP Rocket, so I guess we still should do something about it. |
Yes it's the right library (in the link above). We didn't update it since a long time, so we'll probably do it in the 2.9 |
Awesome, yes, let’s do that in 2.9. calc() isn’t the most critical CSS operation out there, but for people who do use it, the outdated behavior of our lib must be a real PITA. Will let the customer know we’ll most likely update it in 2.9. |
✅ Spaces inside of Unrelated to the |
Hi! Some of calc() are still broken at 2.9.11 |
The remaining issues should be fixed in 2.10 |
Thanks! |
This still seems to exist in 2.10 |
Same here in 2.10.3 |
If you still have the issue, disable, save settings & re-enable CSS minification. It should work after. |
@Tabrisrp not working. |
open a support ticket in that case, we'll look into it. |
2.10.4 - We're still experiencing this issue. |
2.10.12 - Unfortunately still an issue. |
Can’t reproduce with 2.10.12, Same in 2.11 (current development branch), spaces are preserved: @adamlaki, @JiveDig Please open a support ticket if your issue can be reproduced. Thanks! |
HI there.
becomes
But it occurs only with the "+" sign. I found a work around which work for me by wrapping the code with a
When the calc() is into a media query, the spaces around "+" sign are not removed. |
WP-Rocket Version 3.2.6 Same here I think: Original…
…is minified to…
…without the spaces it breaks. |
Issue still present in v 3.4.0.5 Is the plugin using yuicompressor? - yui/yuicompressor#59 |
When CSS minification is enabled, calc() values will be minified as well, but need to be separated by spaces.
Current behavior: calc(1.5rem+2.5px)
Expected behavior: calc(1.5rem + 2.5px)
Reported by customer: https://secure.helpscout.net/conversation/210133386/16324/?folderId=714999
Original bug in lib fixed in February: mrclay/minify#503
The text was updated successfully, but these errors were encountered: