Re: [csswg-drafts] [mediaqueries-5] Remove (prefers-contrast) as a boolean, and replaced by a new color reduction media query (#6036)

One other option could be to have forced colors mode always map to a `more` or `less` value for `prefers-contrast`. Currently @alisonmaher's experimental implementation has > 7:1 mapping to `more` and < 2.5:1 mapping to `less`. Per https://github.com/w3c/csswg-drafts/issues/5224, the WG has thus far chosen not to be prescriptive on what the thresholds are - having a single threshold would allow for the desired usage of `(prefers-contrast)` as a boolean.

So this perhaps comes down to a question of what styles an author might apply via `prefers-contrast` (other than 'reduce visual/color complexity') that would have an effect in forced colors mode. If it is a limited set that wouldn't be harmful for users in this 'middle' band of forced colors, then maybe this is a path forwards. From my understanding current guidance is for authors or design systems to use `prefers-contrast: less` and `prefers-contrast: more` as a signal to how color palettes are selected which would be overridden when in forced colors mode.



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


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

Received on Tuesday, 9 March 2021 20:41:43 UTC