Re: [csswg-drafts] [css-ui-4] choosing background colors for accent-color for contrast (#6159)

I just re-read the spec, and I noticed this part:
> The UA must maintain contrast for legibility of the control, and in order to do so may adjust the luminance or brightness of the color or make color substitutions in other parts of the control (e.g. switching an overlaid glyph from using color to using background-color). It may also generate variations of the color for gradients etc. to match the control to platform conventions for the use of the accent color.

This seems to suggest that not only the colors used in other parts of the control can be changed, but also the accent-color itself...?

Also, I made a gif that better demonstrates what I currently implemented in chrome (I haven't tweaked anything since starting this discussion):
![accentcolor](https://user-images.githubusercontent.com/7681467/115604333-1cfbf300-a296-11eb-8080-64a5ba0c705a.gif)


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


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

Received on Wednesday, 21 April 2021 18:41:18 UTC