Back to Svgo

removeUselessStrokeAndFill

docs/04-plugins/removeUselessStrokeAndFill.mdx

4.0.1399 B
Original Source

Removes useless stroke and fill attributes.

Assigning these attributes can sometimes change nothing in the document. For example, in most cases assigning a stroke color is redundant if the elements stroke-width or stroke-opacity is 0.