Re: [csswg-drafts] [css-color-6] color-contrast() should distinguish foreground and background (#7359)

Coming here from [Una's tweet](https://twitter.com/Una/status/1554534397357002754?s=20&t=YjiF-J25KLqzo3vbj2-Jww) and as specified in [my comment](https://twitter.com/VictorGutt/status/1554846722186252289?s=20&t=YjiF-J25KLqzo3vbj2-Jww) I fear using `over -some-color-` could be confusing. Confusing in the same way `@media (min-width: 576px) {...}` can be. Sure it's not much of a hurdle to get over, but it's enough for me, even after about 7 years, to still have to think about it and double/triple/quadruple check every single time.

Other than that, I definitely prefer explicitness and easily understandable at first glance. Therefore, I can't **+1** Bramus' suggestions enough. It does not to be the exact syntax suggested but the general direction of it.

Another **+1** goes to Bramus for suggessing `/` instead of `vs` as separator. Bringing it on par with other color related functions and is more intuitive in my opinion.

With all that said, my vote is going for `color-contrast(foreground red using wcag2(AA, other, args, if, necessary) / blue, white, yellow)` as of now. _(a comma could also be used in place of `using` here)_

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


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

Received on Wednesday, 3 August 2022 15:35:29 UTC