-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Removes required "to" keyframes in animation #1631
Labels
Comments
This was referenced Dec 25, 2021
I believe this issue has been fixed in CSSO. |
Weirdly, for me the issue only occurs when using |
Closing this as resolved! 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When an SVG has key frames with
to
, svgo will remove them, which changes the animation.This can be caused with the following SVG:
To Reproduce
Steps to reproduce the behavior:
to
frames in the animation.Expected behavior
The
to
frames should be preserved.For example:
0%,to{clip-path:inset(84%0 0)}
, should not become0%{clip-path:inset(84%0 0)}
.Desktop (please complete the following information):
I'm looking further into this over time to see if I can open a PR myself.
The issue is caused by the
minifyStyles
plugin, the actual bug is upstream in CSSO, one of the dependencies.I'll open an issue there as well with an MRE.
The text was updated successfully, but these errors were encountered: