Re: [csswg-drafts] [css-color-5] Make channel values in relative color syntax optional (#10689)

Thank you for opening @SebastianZ.

@tabatkins A function such as `opacity` would be nice where you can input a function and control specific opacities such as `opacity((element/variable) value)`. @tabatkins Then similar to what was brought up in: https://github.com/w3c/csswg-drafts/issues/10677 and https://github.com/w3c/csswg-drafts/issues/10678, you can control the specific opacity for many elements and variables. 

@romainmenke Maybe we can have functions to opt-in or opt-out gamma mapping? I see a javascript example in [css-color-4](https://www.w3.org/TR/css-color-4/), maybe we can automate it in CSS? Such as `gamma-on(color(display-p3 1.2 -0.1 05)`, and `gamma-off(color(display-p3 1.2 -0.1 05)`.

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


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

Received on Wednesday, 7 August 2024 02:24:40 UTC