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

So I did a [prototype](https://phabricator.services.mozilla.com/D112312) of this on Firefox and it suffers from the same issue, depending on whether you consider the color "dark", I choose a white or black foreground color, and that just creates very weird contrast in some colors which aren't too dark nor too light, and the choice of white or black seems pretty arbitrary.

So I'm pretty sure that it'd be better if we allowed authors to provide a "foreground" color of sorts. I also think that we don't want to auto-switch to dark-mode form controls, which is different from that IMO.

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


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

Received on Friday, 16 April 2021 03:30:53 UTC