Fix replacement of duplicate gradients if "fill/stroke" contains fallbacks (#109)

(fixes #79)
This commit is contained in:
Eduard Braun 2016-09-05 22:44:55 +02:00 committed by GitHub
parent 564367f886
commit ec855211de
4 changed files with 30 additions and 14 deletions

View file

@ -20,4 +20,5 @@
<rect id="r3" stroke="url(#g3)" width="100" height="100"/>
<rect id="r4" fill='url("#g4")' width="100" height="100"/>
<rect id="r5" fill="url(#g5)" width="100" height="100"/>
<rect id="r6" fill="url(#g5) #fff" width="100" height="100"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before After
Before After