Re: [csswg-drafts] [css-color] Add OKLab, OKLCH (#6642)

> it doesn't actually matter whether authors use it, because we can still use it as an interpolation and gamut mapping space

We can just add it internally, yes; but forcing authors to convert it to another colorspace just to use it directly seems counterproductive.

> My question regarding named functions vs `color()` still stands

Note that all the spaces in `color()` are rectangular orthogonal (i.e. none are cylindrical polar). At one point we had CIE `Lab` in color, too (but not CIE `LCH`), then took it out. And, as with the CIE versions, the cylindrical polar form is more useful because Chroma and Hue angle mean something and are separable concepts, while `a` and `b` only mean something together.

My concrete suggestion (and this would need sign-off from the two teams that already implemented `lab()` and `lch`) is to have:

- `oklab()`
- `oklch()`
- `cielab()`
- `cielch()`

Yes I know I am always complaining about the chilling effect of bikeshedding on early adoption but that would 

1. add clarity (there was  no confusion before, but now there could be)
2. make the OK forms shorter :)


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


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

Received on Wednesday, 6 October 2021 17:03:02 UTC