Allow current color as valid css color

In SVG images `curentColor` is allowed as a way to explicitly inherit the current color. When setting `currentColor` as fill color on a shape together with a styling class, the class will now be used instead of the theme, which was not possible otherwise.
This commit is contained in:
Hidde Boomsma 2023-11-03 06:36:05 +01:00 committed by GitHub
parent 451aa70fd6
commit 15b7bdb384
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@ import "regexp"
// namedColors is a list of valid CSS colors
var namedColors = []string{
"currentcolor",
"transparent",
"aliceblue",
"antiquewhite",