We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6d04e3 commit aba082aCopy full SHA for aba082a
2 files changed
css/handlers.go
@@ -250,9 +250,9 @@ var (
250
"writing-mode": WritingModeHandler,
251
"z-index": ZIndexHandler,
252
}
253
- colorValues = []string{"initial", "inherit", "aliceblue", "antiquewhite",
254
- "aqua", "aquamarine", "azure", "beige", "bisque", "black",
255
- "blanchedalmond", "blue", "blueviolet", "brown", "burlywood",
+ colorValues = []string{"transparent", "initial", "inherit", "aliceblue",
+ "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque",
+ "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood",
256
"cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
257
"cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
258
"darkgray", "darkgrey", "darkgreen", "darkkhaki", "darkmagenta",
sanitize_test.go
@@ -1747,6 +1747,10 @@ func TestDefaultStyleHandlers(t *testing.T) {
1747
in: `<div style="background-color: coral"></div>`,
1748
expected: `<div style="background-color: coral"></div>`,
1749
},
1750
+ {
1751
+ in: `<div style="background-color: transparent"></div>`,
1752
+ expected: `<div style="background-color: transparent"></div>`,
1753
+ },
1754
{
1755
in: `<div style="background-image: url('http://paper.gif')">` +
1756
`</div><div style="background-image: inherit"></div>`,
0 commit comments