Open ahaoboy opened 15 hours ago
In the example with this issue, it seems OK to remove the styles because they aren't used (they target the body element, and there is none).
The example file in issue #1834 still doesn't work in SVGO 4. There are a number of related issues which haven't been addressed.
I've been working on a spinoff of SVGO 4 which addresses some of the bugs and performance issues - https://www.npmjs.com/package/svgo-ll - that version handles the file in issue 1834 correctly.
Describe the bug CSS variables and media queries have been removed
To Reproduce
Expected behavior Preserve CSS variables and media queries
Screenshots
Desktop (please complete the following information):
Additional context
Similar issues: https://github.com/svg/svgo/issues/1834