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

I like the verbose syntax a bit more too, however it immediately raises questions about how wcag3 options would be specified, because at that point it’s no longer just a single contrast value. Would you have to define your target contrast explicitly? Eg `color-contrast( foreground red using wcag3(75) vs blue yellow white)`. The value needed to target is tied to font size and weight, so it seems this approach could quickly lose its utility (ie you’re less likely to type the wrong wcag2 value than you are a wcag3 value).

Before I go too far on this has there already been that consideration?

-- 
GitHub Notification of comment by NateBaldwinDesign
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7359#issuecomment-1203340252 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 00:14:29 UTC