[csswg-drafts] [css-color] Global Color Adjustments (#10262)

softworkz has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color] Global Color Adjustments ==
Hello,

I've been skimming through the color specs with interest, seing a lot of useful features, but I couldn't find what I had hoped to be there: 

The ability to make global adjustments.

Unless I've missed anything, this appears to be always and "only" about specifying and manipulating individual CSS color values, but no means for adjusting all CSS colors by a single method. Even the color-profile @-rule doesn't appear to allow one to set a default profile for all colors.

The specific use case I'm after is this: We have an audio/video application that is large and completed already (i.e. no new development) but UI elements are sometimes appearing too bright - especially on HDR displays. Reworking all individual colors in all themes wouild be an enormous task, not to speak about 3rd party components; also there's a strict requirement for downlevel html compatibility and finally, the best suitable algorrithm for brightness attentuation isn't clear up-front and should be exchangeable.
For those reasons, it is impractical to achieve this by using color functions (e.g. with relative color) in every single CSS rule which specifies colors.

Ideally, it should affect all CSS colors equally but not videos and images - that's why Chromium's force-color-profile doesn't help either. 
I've also seen `dynamic-range-limit`, but it doesn't help in this case either. 

I'd think that my specific use case is a rather common one and generally it's not always feasible to rework all CSS color rules.

Thanks for any thoughts,
sw

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10262 using your GitHub account


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

Received on Saturday, 27 April 2024 06:37:21 UTC