Re: [csswg-drafts] [css-color-4] Disagreements over gamut mapping (#7610)

I should also add that we already apply the CSS Gamut mapping algorithm in WebKit in at least one script observable place (the ones in the previous comment are not), by using the `color-mix` function with the hwb or hsl color interpolation method.

For example, if you have:

```css
color-mix(in hsl, color(srgb 2 0 0) 50%, color(srgb 0 0 2) 50%)
```

We first gamut map the two inputs into the sRBG gamut, and then mix them. This is specified here: https://drafts.csswg.org/css-color-5/#color-mix-result

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


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

Received on Wednesday, 17 August 2022 22:31:43 UTC