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

@weinig might you be able to summarize the "architecture" of color handling in Safari?

From testing in Safari Technology Preview 151 it's clear that something has changed from the previous behavior of clamping each component separately. One of the test cases that @sesse used was `color(srgb 2 0 0)` which in Safari stable clamps to `color(srgb 1 0 0)` in computed style, but in STP remains as `color(srgb 2 0 0)` and renders as something close to `color(display-p3 0.9992 0.4399 0.3215)` according to Web Inspector's color picker.

It would be great to understand a bit about where in the pipeline such mapping happens, and whether it only applies to out-of-gamut cases like `color(srgb 2 0 0)`, or if something similar would also happen when `color(display-p3 1 0 0)` is to be displayed on an RGB monitor?

-- 
GitHub Notification of comment by foolip
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7610#issuecomment-1217825504 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 10:24:24 UTC