svgo icon indicating copy to clipboard operation
svgo copied to clipboard

Inline gradient/fills

Open strarsis opened this issue 8 years ago • 3 comments

It may be useful for an addtional plugin to inline fills (notably gradients), too. SVGs exported from Illustrator extensively use them and they could collide with gradients of same ID in other SVGs.

strarsis avatar Jan 21 '17 19:01 strarsis

It would be much easier if the new css selection features from https://github.com/svg/svgo/pull/592 could be used, querying for (linear)Gradient element by ID for its corresponding element fill attribute/style.

strarsis avatar Feb 02 '17 11:02 strarsis

The easiest workaround now for this issue would be using the prefixIds plugin in svgo.

strarsis avatar Jan 27 '18 02:01 strarsis

Has this issue been resolved, or do I still need to use the workaround? Is there anything I can help with?

xseman avatar Nov 19 '24 10:11 xseman