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
Minifier is removing percentage from 0 value #957
Comments
You are right, it's a bug |
I'm actually using grunt-contrib-cssmin 2.1.0 which I think is using 4.x. |
It does indeed. Fix is coming! |
jakubpawlowicz
added a commit
that referenced
this issue
Jul 14, 2017
Why: * Apparently `width` and `max-width` `0%` value cannot be turned into `0`, see: https://codepen.io/judowalker/pen/xrMxWj
jakubpawlowicz
added a commit
that referenced
this issue
Jul 14, 2017
Why: * Apparently `width` and `max-width` `0%` value cannot be turned into `0`, see: https://codepen.io/judowalker/pen/xrMxWj
It's fixed in 4.1.7. |
jakubpawlowicz
added a commit
that referenced
this issue
Jul 14, 2017
This was referenced Mar 12, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Removing the percentage from a 0 value can affect the way content is displayed and, therefore, should not removed.
I created a minimal working example which demonstrates this. This happens across browsers:
https://codepen.io/judowalker/pen/xrMxWj
The text was updated successfully, but these errors were encountered: