[csswg-drafts] [css-color-4] Is color space name case sensitive? (#5052)

LeaVerou has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-4] Is color space name case sensitive? ==
I can't find anything in [the definition of `<ident>`](https://drafts.csswg.org/css-values-4/#typedef-ident) that restricts it to being case sensitive or not, so I assume it depends on usage (this seems to be the case in other places that use `<ident>`, such as [custom properties](https://drafts.csswg.org/css-variables/#example-81b6bcdd).

There is nothing about case sensitivity in [the definition of color()](https://drafts.csswg.org/css-color-4/#color-function). WebKit, which is the only current implementation, seems to treat it as case insensitive. [demo](https://dabblet.com/gist/35558d661baf6345cfde3db2c52b882c).

Not sure if there are any color spaces that are only distinct by capitalization. There are certainly some that are weird if lowercased, e.g. [xyY](https://en.wikipedia.org/wiki/CIE_1931_color_space#CIE_xy_chromaticity_diagram_and_the_CIE_xyY_color_space), but I'm leaning towards case-insensitivity, unless someone can produce an example of color space names that actually clash if same cased.

If we change this to case sensitive, we should probably do so ASAP before other implementations.
If we don't, we should still clarify in the spec.

CC @svgeesus @tabatkins 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5052 using your GitHub account

Received on Thursday, 7 May 2020 21:52:35 UTC