W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2021

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

From: Chris Lilley via GitHub <sysbot+gh@w3.org>
Date: Wed, 12 May 2021 18:00:38 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-839983389-1620842437-sysbot+gh@w3.org>
Re-tagging to CSS Images 4, where [gradients are defined](https://drafts.csswg.org/css-images-4/#gradients). 

As [defined in CSS Color 4](https://drafts.csswg.org/css-color-4/#interpolation-space), unless the host syntax overrides (and currently there is no gradient syntax to override) then pairs of legacy sRGB colors will interpolate in gamma-encoded sRGB. This is necessary for Web compat.

A pair of non-legacy colors, ore one legacy and one non-legacy, will interpolate in Lab. This includes the non-legacy `color(srgb)` form.

CSS Images 4 should define a host override syntax to allow other choices of interpolation colorspace.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 12 May 2021 18:00:40 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:23 UTC