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
[Bug] : opacity percentages remove zeroes #962
Comments
sorry for the delay |
@anikethsaha Is there a way to set up cssnano@nightly on a parcel configuration? Using your minifier with Parcel. |
Not really familiar with parcel's config. But you would use nightly same as you use cssnano. |
Bug title is slightly misleading; the code doesn't remove zeroes, it's just overly eager to clamp the opacity between 0 and 1 and doesn't take into account percentages. Since most non-zero percentages will be over 1, the clampOpacity function clamps it to 1, then adds back the percentage |
Fixed in 5.0.0-rc.2 |
Describe the bug
100%
is transformed to1%
foropacity
properties:Becomes:
@-webkit-keyframes fade{0%{opacity:1%}40%{opacity:0}60%{opacity:0}to{opacity:1%}}
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected:
@-webkit-keyframes fade{0%{opacity:100%}40%{opacity:0}60%{opacity:0}to{opacity:100%}}
The text was updated successfully, but these errors were encountered: