Skip to content
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

Remove unknowns & defaults should also works within 𝚜𝚝𝚢𝚕𝚎 attribute #1706

Open
KrasnayaPloshchad opened this issue Nov 7, 2022 · 0 comments
Labels

Comments

@KrasnayaPloshchad
Copy link

KrasnayaPloshchad commented Nov 7, 2022

Describe the bug
Although SVGO have an removeUnknownsAndDefaults plugin, it doesn’t works with CSS properties in style attribute, instead, it must works with convertStyleToAttrs.js

To Reproduce
Steps to reproduce the behavior:

  1. Download https://upload.wikimedia.org/wikipedia/commons/archive/3/30/20200701055512%21PatriarchsCross.svg
  2. Optimize with SVGO
  3. Enable removeUnknownsAndDefaults.js
  4. See error

Expected behavior
This should be able to clean up CSS styles as well, which would be more useful for SVGs created by major SVG editors.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • SVGO Version 3.0.0 (through SVGOMG)
  • NodeJs Version N/A
  • OS: Android

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant