-
Notifications
You must be signed in to change notification settings - Fork 479
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
"Inline styles" does not inline styles if they are used more than once #390
Labels
Comments
jamieburchell
changed the title
Add option to inline all styles, even if used more than once
"Inline styles" does not inline styles if they are used more than once
Oct 6, 2022
Unfortunately this issue makes SVGOMG pretty unusable for SVGs, that are used inline. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The option currently exists to inline styles, but it does not work if the class is used more than once. It makes sense from an optimisation point of view, but if you are optimising SVGs which will ultimately be inlined in HTML, sometimes it's desirable not to have any styles/classes that might leak. Arguably it's confusing to select "Inline styles" and find they are not.
There is apparently an option to support this:
svg/svgo#592 (comment)
If this is not desirable, we'd need an option to create "unique" classes instead.
The text was updated successfully, but these errors were encountered: