Closed
Description
From the CSS color spec:
- "As usual for CSS-defined idents, all of these keywords are case-insensitive." ( https://drafts.csswg.org/css-color/#named-colors )
- "Note: As with all other keywords, these names are case-insensitive. They are shown here with mixed capitalization for legibility." ( https://drafts.csswg.org/css-color/#css-system-colors )
- " Only later did CSS pick it up, at which point the capitalization stopped mattering, as CSS keywords are case-insensitive." ( https://drafts.csswg.org/css-color/#currentcolor-color )
However, the CSS value spec says pre-defined keywords are ASCII case-insensitive:
https://drafts.csswg.org/css-values-4/#keywords
Concretely, ftp://ftp.unicode.org/Public/UNIDATA/CaseFolding.txt has this line:
017F; C; 0073; # LATIN SMALL LETTER LONG S
which means that ſilver
is case-insensitively equal to silver
. However, it is not ASCII case-insensitively equal to silver
(only a-z <-> A-Z equivalence are considered in that case).
Blink, Webkit and Gecko seems to treat colors as ASCII case-insensitive.
Note: I'm opening this for the color spec, but it is probably worth checking that for other CSS specs too.