jakearchibald / svgomg

Web GUI for SVGO

Home Page:https://jakearchibald.github.io/svgomg/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Inline styles" does not inline styles if they are used more than once

jamieburchell opened this issue · comments

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.