Skip to content

fix(removeUselessStrokeAndFill): disable if SVG contains animations#2063

Open
johnkenny54 wants to merge 3 commits into
svg:mainfrom
johnkenny54:issue-1677
Open

fix(removeUselessStrokeAndFill): disable if SVG contains animations#2063
johnkenny54 wants to merge 3 commits into
svg:mainfrom
johnkenny54:issue-1677

Conversation

@johnkenny54

Copy link
Copy Markdown
Contributor

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.

@KTibow KTibow added the merge conflicts Changes currently conflict with main label Mar 8, 2026
@KTibow KTibow changed the title Disable removeUselessStrokeAndFill if SVG contains animations. fix(removeUselessStrokeAndFill): disable if SVG contains animations Mar 13, 2026
@KTibow KTibow removed the merge conflicts Changes currently conflict with main label Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

removeUselessStrokeAndFill fails at animations

2 participants