Re: [csswg-drafts] [css-transitions] Add control of colorspace used for transitioning colors (#7063)

Well, this is not only related to transitions. It is also related to all sorts of compositing. Thus, an idea is to have a css color-rendering-mode property that affects *all* color related attributes.

`color-rendering-mode`

Supported values:

* `legacy`: This value is default. Ihen using this mode alpha blending and gradients are broken as required by old specification.
* `linear`: Color are blended and specified in linear RGB space, unless otherwise specified. Enabling this mode is a recommended best practice. If you specify `#808080`, the color will be slightly brighter than in `legacy` mode. It is possible to specify a color values using the legacy definition as such

 - `color-rendering-mode: linear; color: sRGB(#808080)`

Notice that this only affects the interpretation of #808080, which will enter the rendering pipeline as roughly #404040. Blending and gradient rendering is still performed in linear space.



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


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

Received on Sunday, 23 July 2023 09:04:38 UTC