Remove duplicate gradient stops and update unit tests
This commit is contained in:
parent
238d0d5402
commit
f6387b1f22
3 changed files with 53 additions and 11 deletions
|
|
@ -1,11 +1,18 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<linearGradient id="grad" x1="0" y1="0" x2="0" y2="1">
|
||||
<linearGradient id="lingrad" 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>
|
||||
<radialGradient id="radgrad">
|
||||
<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" />
|
||||
</radialGradient>
|
||||
</defs>
|
||||
<rect width="300" height="300" fill="url(#grad)" />
|
||||
<rect width="300" height="300" fill="url(#lingrad)" />
|
||||
<rect width="300" height="300" fill="url(#radgrad)" />
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 384 B After Width: | Height: | Size: 685 B |
Loading…
Add table
Add a link
Reference in a new issue