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.

There can be more than two colors used in the control, tho, so this still wouldn't solve everything; magic will always be required unless we explicitly specify what set of colors are allowed to be used on controls.

> Should any of this behavior be specified? Should there be any guidance on how to color the rest of the form control in response to the accent-color?

Happy to provide more non-normative guidance, so engineers don't have to reinvent the wheel here on their own. Basing it on relative luminance sounds completely reasonable, tho I'd want to do some testing to see how it responds in practice. I'll see if I can get Canary working again on this machine to try out your impl. ^_^

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6159#issuecomment-810439281 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 17:23:01 UTC