Remove unreferenced patterns and gradients outside of a defs
This commit is contained in:
parent
2cc9c00ef7
commit
066c627833
7 changed files with 640 additions and 7 deletions
11
unittests/duplicate-gradient-stops.svg
Normal file
11
unittests/duplicate-gradient-stops.svg
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<linearGradient id="grad" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="red" />
|
||||
<stop offset="0.5" stop-color="blue" />
|
||||
<stop offset="0.5" stop-color="blue" />
|
||||
<stop offset="1.0" stop-color="green" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect width="300" height="300" fill="url(#grad)" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 384 B |
Loading…
Add table
Add a link
Reference in a new issue