Re: [csswg-drafts] [css-images-4] Question: in what color space will gradient interpolation occur? (#6094)

Note that color interpolation syntax was just added to all gradient functions in https://github.com/w3c/csswg-drafts/commit/1f940c6aa92606b447b9b10f880d089833511f77

> In particular when all colors of the gradient are defined in the same colorspace, it should use that colorspace.

We have explored using this as a heuristic, but it's a poor heuristic for any gamma-encoded RGB space (e.g. you wouldn't want two `display-p3` colors to interpolate in that space). 

There might be value in providing the ability to set defaults for color interpolation, but that wouldn't be gradient specific.

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


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

Received on Monday, 1 November 2021 19:35:04 UTC