svg / svgo

⚙️ Node.js tool for optimizing SVG files
https://svgo.dev/
MIT License
21.03k stars 1.39k forks source link

Disable removeUselessStrokeAndFill if SVG contains animations. #2063

Open johnkenny54 opened 3 months ago

johnkenny54 commented 3 months ago

The removeUselessStrokeAndFill plugin had logic to disable itself if the SVG contained <style> elements or scripts. The optimizations also failed in some cases when the SVG contains animation elements. This PR adds animation elements to the list of things that disable the plugin.

Resolves #1677.