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

I know we discussed this earlier, but I think it'd be best if we force the author to give two colors instead of trying to magically do stuff. 

We do something similar with the OS accent color in Gecko for the new form controls, using the relative luminance to compute lighter / darker colors from the OS accent: https://searchfox.org/mozilla-central/rev/74d0efd1107a26f178b108b6a18a179e9b06547c/widget/nsNativeBasicTheme.cpp#136-165

However we do have a known good pair of foreground / background colors provided by the OS, which ensure that we don't mess up contrast.

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


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

Received on Tuesday, 30 March 2021 03:42:32 UTC