Remove gradients singly referenced from another gradient
This commit is contained in:
parent
f6f98580c7
commit
8e9683f648
5 changed files with 132 additions and 7 deletions
12
unittests/dont-collapse-gradients.svg
Normal file
12
unittests/dont-collapse-gradients.svg
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<linearGradient id="g1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" stop-color="blue" />
|
||||
<stop offset="1" stop-color="yellow" />
|
||||
</linearGradient>
|
||||
<radialGradient id="g2" xlink:href="#g1" cx="100" cy="100" r="70"/>
|
||||
<radialGradient id="g3" xlink:href="#g1" cx="100" cy="100" r="70"/>
|
||||
</defs>
|
||||
<rect fill="url(#g2)" width="200" height="200"/>
|
||||
<rect fill="url(#g3)" width="200" height="200" y="200"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 543 B |
Loading…
Add table
Add a link
Reference in a new issue