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

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

== [mediaqueries-5] Remove (prefers-contrast) as a boolean, and replaced by a new color reduction media query ==
In https://github.com/w3c/csswg-drafts/issues/5433, we resolved to remove the `forced` value from `prefers-contrast`.

I think the logical conclusion of this, is that there is no more use case for a catch-all `(prefers-contrast)` that isn't either explicitly low/`less` or high/`more`, because I can't come up with a use case where you would want to change something in both low/`less` and high/`more` contrast modes and also would not apply when forced colors is active. If there are still such cases, they should be pretty rare, and probably warrant an explicit `(prefers-contrast: more) or (prefers-contrast: less)`.

Because of this, I suggest we drop `(prefers-contrast)` as a boolean flag, and add a new feature query that indicates that a color complexity reduction might be a good thing. This media query would apply as a superset of a couple of other preferences, some of which are not possible in all operating systems, but have similar implications for website authors, such as:

* high contrast
* low contrast
* forced colors
* reduced transparency
* ...

The proposal would be something along the lines of `(reduced-colors)`. It would be a syntactic sugar for `(prefers-contrast: more) or (prefers-contrast: less) or (forced-colors: active) or (reduced-transparency)`.

Optionally we could replace `(forced-colors: active)` by it, by allowing two sub-values, like `(reduced-colors: forced)` vs `(reduced-colors: forced)`.

Does that seem reasonable.

cc @tabatkins @frivoal @cookiecrook 

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


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

Received on Wednesday, 24 February 2021 17:55:28 UTC