[csswg-drafts] [css-color-6] Does color-contrast() need to support three color contrast comparisons? (#8457)

CharlesBelov has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-6] Does color-contrast() need to support three color contrast comparisons? ==
* please be specific (in the title and issue) about what you want to change:

So far as I can tell, color-contrast() intends to support foreground versus background. However, for sites which hide link underlining or other link marking, the site would also need to support foreground versus link and background versus link. For example, foreground versus link for WCAG 2.0 AA needs to have 3:1 contrast and background versus link for WCAG 2.0 AA needs to have 4.5:1 contrast.

So, does color-contrast also need a syntax and means to support the three-way comparison of:

- foreground versus background
- foreground versus link
- background versus link
?

* please link to the spec section you're talking about, or at least the spec
2. [https://drafts.csswg.org/css-color-6/#colorcontrast](Computing a Contrasting Color: the [contrast-color()](https://drafts.csswg.org/css-color-6/#funcdef-contrast-color) function)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8457 using your GitHub account


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

Received on Thursday, 16 February 2023 00:47:11 UTC