Re: [csswg-drafts] [css-color-4] Question: in what color space will blending occur? (#6093)

As you say, for the legacy sRGB syntaxes we are limited by Web compat to do the wrong thing (operating directly on gamma-encoded values). Blending/mixing/interpolation can have an opt-in to do better things (either linear-light for physical light modelling, or perceptual uniformity, or chroma-preserving perceptual uniformity).

For the non-legacy Wide Color Gamut stuff,  converting to sRGB first is **absolutely not** the way to go as the [Interpolation section](https://drafts.csswg.org/css-color-4/#interpolation) makes clear, in particular [Color space for interpolation](https://drafts.csswg.org/css-color-4/#interpolation-space).

The work to add these opt-ins for transitions, animations, gradients, and compositing is ongoing.

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


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

Received on Thursday, 11 March 2021 18:07:29 UTC