Re: [csswg-drafts] [css-color-4] Fallback strategy for nonexistent color spaces? (#6129)

Part of the problem is that I do not see a specific use for the `components` descriptor, not only for this use case but in general. One could try to infer the color model from the names of the components, like
```css
components: red, green, blue
```
which is clearly RGB but the component names aren't normalized so someone could have
```css
components: rojo, verde, azul
```
and you are screwed.

From my point of view, it would be more useful to have a `color-model` descriptor which could take any values from Table 19 in the ICCv4 specification (I have v4.3 aka ICC.1:2010), plus `HSL` and `HWB` (I already suggested using this in a color-related Houdini issue):

![iccv4-table19](https://user-images.githubusercontent.com/38894633/136669505-f59f9c70-b7f9-4a93-b98c-ee1e879923c8.png)

Without knowing the color model, one cannot serve the most basic use case for a color space: a color picker, nor can provide an approximate fallback color.

-- 
GitHub Notification of comment by carlosame
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6129#issuecomment-939339466 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 9 October 2021 18:14:45 UTC