-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Minifier is removing percentage from 0 value #957
Comments
You are right, it's a bug 👍 Do you use clean-css 4.x or 3.x? |
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
# for free
to join this conversation on GitHub.
Already have an account?
# 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: