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

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

== [css-color] Add OKLab, OKLCH ==
For the background an explanation of _why_ to add this feature, please see [this Color Workshop presentation](https://www.w3.org/Graphics/Color/Workshop/slides/talk/lilley) which has a video presentation, plus associated slides and transcript. You can just skim the slides/transcript if you are pressed for time.

Having done so, and given the rationale presented, the specific proposal is:

**CSS Color 4**

- add `oklab()` and `oklch()` (as well as the existing `lab()` and `lch()` which are still useful)
- in the interpolation section, for non-legacy color formats, if the host syntax does not specify a colorspace, change `lab` to `oklab` as the default
- in the gamut mapping section, require gamut reduction to use OKLCH chroma reduction and deltaE OK, rather than CIE LCH chroma reduction and deltaE 2000. This is both better _and_ faster.

**CSS Color 5**

- add `oklab` and `oklch` as [defined color spaces](https://www.w3.org/TR/css-color-5/#color-spaces) which can be used in `color-mix()`
- add `oklab()` and `oklch()`  to Relative Color Syntax

@argyleink @una @tabatkins @LeaVerou 


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


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

Received on Monday, 20 September 2021 13:50:35 UTC