-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(convertcolors): add param to convert colors to common case (#1692)
- Loading branch information
1 parent
9334b08
commit 6747e3a
Showing
12 changed files
with
83 additions
and
22 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,23 @@ | ||
Do not touch the casing of URL references in color attributes. | ||
|
||
=== | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"> | ||
<linearGradient id="Aa"> | ||
<stop stop-color="ReD" offset="5%"/> | ||
</linearGradient> | ||
<text x="0" y="32" fill="gold">uwu</text> | ||
<text x="0" y="64" fill="GOLD">owo</text> | ||
<text x="0" y="96" fill="url(#Aa)">eue</text> | ||
</svg> | ||
|
||
@@@ | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"> | ||
<linearGradient id="Aa"> | ||
<stop stop-color="red" offset="5%"/> | ||
</linearGradient> | ||
<text x="0" y="32" fill="gold">uwu</text> | ||
<text x="0" y="64" fill="gold">owo</text> | ||
<text x="0" y="96" fill="url(#Aa)">eue</text> | ||
</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,27 @@ | ||
The preserveCurrentColor param should be case-insensitive. | ||
|
||
=== | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"> | ||
<linearGradient id="A"> | ||
<stop stop-color="ReD" offset="5%"/> | ||
</linearGradient> | ||
<text x="0" y="32" fill="currentColor">uwu</text> | ||
<text x="0" y="64" fill="currentcolor">owo</text> | ||
<text x="0" y="96" fill="url(#A)">eue</text> | ||
</svg> | ||
|
||
@@@ | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"> | ||
<linearGradient id="A"> | ||
<stop stop-color="ReD" offset="5%"/> | ||
</linearGradient> | ||
<text x="0" y="32" fill="currentColor">uwu</text> | ||
<text x="0" y="64" fill="currentcolor">owo</text> | ||
<text x="0" y="96">eue</text> | ||
</svg> | ||
|
||
@@@ | ||
|
||
{"attrs":"fill", "preserveCurrentColor": true} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.