-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
846229c
commit 15ba73d
Showing
6 changed files
with
141 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Don't merge gradients that are referenced in a <style> selector. | ||
|
||
=== | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"> | ||
<style> | ||
#b stop {stop-opacity:.5} | ||
</style> | ||
<defs> | ||
<linearGradient id="a"> | ||
<stop style="stop-color:#aaa"/> | ||
<stop style="stop-color:#aaa;stop-opacity:0" offset="1"/> | ||
</linearGradient> | ||
<linearGradient id="b"> | ||
<stop style="stop-color:#aaa"/> | ||
<stop style="stop-color:#aaa;stop-opacity:0" offset="1"/> | ||
</linearGradient> | ||
</defs> | ||
<rect width="20" height="10" fill="url(#a)"/> | ||
<rect y="15" width="20" height="10" fill="url(#b)"/> | ||
</svg> | ||
|
||
@@@ | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"> | ||
<style>#b stop{stop-opacity:.5}</style> | ||
<defs> | ||
<linearGradient id="a"> | ||
<stop style="stop-color:#aaa"/> | ||
<stop style="stop-color:#aaa;stop-opacity:0" offset="1"/> | ||
</linearGradient> | ||
<linearGradient id="b"> | ||
<stop style="stop-color:#aaa"/> | ||
<stop style="stop-color:#aaa;stop-opacity:0" offset="1"/> | ||
</linearGradient> | ||
</defs> | ||
<rect width="20" height="10" fill="url(#a)"/> | ||
<rect y="15" width="20" height="10" fill="url(#b)"/> | ||
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Merge gradients that are referenced in a <style> property. | ||
|
||
=== | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"> | ||
<style>#c{fill:url(#b)}</style> | ||
<defs> | ||
<linearGradient id="a"> | ||
<stop style="stop-color:#aaa"/> | ||
<stop style="stop-color:#aaa;stop-opacity:0" offset="1"/> | ||
</linearGradient> | ||
<linearGradient id="b"> | ||
<stop style="stop-color:#aaa"/> | ||
<stop style="stop-color:#aaa;stop-opacity:0" offset="1"/> | ||
</linearGradient> | ||
</defs> | ||
<rect width="20" height="10" fill="url(#a)"/> | ||
<rect id="c" y="15" width="20" height="10"/> | ||
</svg> | ||
|
||
@@@ | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"> | ||
<style>#c{fill:url(#a)}</style> | ||
<defs> | ||
<linearGradient id="a"> | ||
<stop style="stop-color:#aaa"/> | ||
<stop style="stop-color:#aaa;stop-opacity:0" offset="1"/> | ||
</linearGradient> | ||
</defs> | ||
<rect width="20" height="10" fill="url(#a)"/> | ||
<rect id="c" y="15" width="20" height="10"/> | ||
</svg> |