We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
const { optimize } = require('svgo'); console.log( optimize( `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"> <circle cx="12" cy="12" r="8" fill="currentColor" fill-opacity="0"> <animate attributeName="fill-opacity" values="0;1" begin="1.2s" dur="0.4s" fill="freeze" /> </circle> </svg>`, { plugins: ['removeUselessStrokeAndFill'] } ) );
Result:
{ data: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="none"><animate attributeName="fill-opacity" values="0;1" begin="1.2s" dur="0.4s" fill="freeze"/></circle></svg>', info: { width: '24', height: '24' } }
Notice that fill="currentColor" was changed to fill="none".
fill="currentColor"
fill="none"
Expected behavior Expected not to change fill because fill-opacity is being animated, so actual value of fill-opacity is not 0.
fill
fill-opacity
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Result:
Notice that
fill="currentColor"
was changed tofill="none"
.Expected behavior
Expected not to change
fill
becausefill-opacity
is being animated, so actual value offill-opacity
is not 0.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: