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
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: