Re: [csswg-drafts] [css-color-5] Wide review (#7297)

A **Formal Objection** to CSS Color 4 `color-contrast()` referencing the W3C Recommendation WCAG 2.1 Color Contrast [has been raised](https://github.com/w3c/csswg-drafts/issues/7310#issuecomment-1146693305) by @myndex

Resolving this would seem to require:

- removing `color-contrast()` from CSS Color 5
- deprecating the color-contrast portion of WCAG 2.1 and republishing the Recommendation

Moving forward to replace the functionality would require:

- helping drive APCA towards consensus
-  getting a normative reference to APCA added to WCAG 3.0 (currently it is just mentioned in passing, as a possible _tool_ to use, and the mathematics of the calculation are not referenced **at all**)
- creating a pair of functions (APCA does not treat text and background as identical, unlike WCAG 2.x):
  - `color-contrast-text()`
  - `color-contrast-background()`

 `color-contrast-text()` would take a background color and a list of candidate text colors;  `color-contrast-background()` would take a text color and a list of candidate background colors. Both functions would take an optional target L<sup>c</sup>.

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


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

Received on Sunday, 5 June 2022 14:59:10 UTC