[csswg-drafts] [css-color-6] Behavior of color-contrast() when no level is specified (#7556)

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

== [css-color-6] Behavior of color-contrast() when no level is specified  ==
[Right now](https://drafts.csswg.org/css-color-6/#colorcontrast), if no level is specified, the behavior is that "the most contrasting color" is returned. 
This essentially ignores the preference order the candidates are listed in and is vastly different from the behavior when a level is specified, breaking consistency. E.g. it makes `color-contrast(over teal, white, black)` the same as `color-contrast(over teal, black, white)`.
What are the use cases where authors want the most contrasting color? Why not default to a reasonable (or even highest) level?

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


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

Received on Tuesday, 2 August 2022 15:54:29 UTC