-
-
Notifications
You must be signed in to change notification settings - Fork 15
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 : Whitespaces removed around operator of calc() function #84
Comments
See: #75 |
So you are saying
Should stay
|
Hmm can you also look at the unit test in the commit? |
Yes, Chrome says that : |
let me update the unit test |
Good catch! It was missing |
Thank you for the correction 👍 |
I think its because of #75 that I fixed actually made this issue exposed. Before 75 the code must have handled this scenario but not the other one. Very interesting. I will release 2.5.2 tomorrow! |
2.5.2 is in Maven Central if you want to give it a try. |
I updated to 2.5.2 and it works as expected. |
Thanks for reporting it and testing it! |
I'm facing a problem when optimizing CSS files containing the CSS function calc(), whitespaces inside this function are removed.
This problem only appear from 2.5.0 version. Previous versions didn't remove these whitespaces.
To be interpreted by browsers, the calc() function must have whitespaces around operator '-' or '+'.
Then, the expected behavior should be to not remove whitespaces for calc() function.
To reproduce the problem, you can use this CSS code and optimize it with plugin :
height: calc(100vh - 20px);
You should get this :
height: calc(100vh-20px);
The text was updated successfully, but these errors were encountered: