[csswg-drafts] [css-color-4] Allow any color space as part of the interpolation method? (#7907)

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

== [css-color-4] Allow any color space as part of the interpolation method? ==
Currently, the [color-interpolation-method](https://drafts.csswg.org/css-color-4/#color-interpolation-method) syntax production accepts a limited list of color spaces for interpolation:

```
<rectangular-color-space> = srgb | srgb-linear | lab | oklab | xyz | xyz-d50 | xyz-d65
<polar-color-space> = hsl | hwb | lch | oklch
```

That leaves out several of the predefined rgb spaces like `display-p3`, `rec2020`, and so on. I imagine that's because all rgb spaces would give a similar (the same?) result to either `srgb` or `srgb-linear` - so there's no particular use-case? But I think this makes it harder to teach. If `srgb` and `display-p3` interpolation would have the same result, why not allow authors to use either one? Both are well defined and meaningful, they just happen to be an alias for the same thing. But why should we need to memorize which is the _right_ rgb interpolation space?

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


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

Received on Tuesday, 18 October 2022 21:39:00 UTC