Re: [csswg-drafts] [css-color-4] Consider adding "extended" and "linear" variants of the predefined RGB-ish color spaces (#6087)

Extended is now the default, so re-titling the issue to reflect the remaining open part.

**Expose Linear-light sRGB as CSS syntax?**

Currently, the term [linear-light sRGB](https://drafts.csswg.org/css-color-4/#linear-light-sRGB) is defined in CSS Color 4, primarily to allow reference from other specifications such as SVG filters or Canvas. However, it isn't exposed as a `color()` colorspace. Should it be?

```css
color: color(srgb-linear 0.1 0.4 0.7);
```

The main reason to do so would be for the convenience of authors who are also using colors in WebGPU or WebGL, which are not color-managed and require all colors to be specified in a single colorspace. `srgb-linear` is supported there, but not in CSS.



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


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

Received on Monday, 11 October 2021 12:11:20 UTC