Re: [csswg-drafts] [css-color-adjust-1][mediaqueries-5] Fold `forced-colors` and `prefers-contrast`? (#3856)

> Using @media (prefers-contrast) evaluates true for everything except `no-preference`

I understand this, and I was heavily involved in defining this behavior with `prefers-reduced-motion` in order to keep the syntax flexible. (E.g. it could also match something more specific in the future if needed like `no-parallax`). 

The `no-preference` boolean behavior also worked well with the original proposal for contrast, which was:

`prefers-increased-contrast: [no-preference] | increase | high`

But now with name change and the addition of `low` and `forced` a boolean match for “prefers contrast” can also mean:

- low, aka “does not prefer contrast”
- forced, which is not conveying a preference for the author to style but a state that the author is forced to deal with and should react to.

IMO, `forced-colors` is a much better landing spot and naming convention for this concept.

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

Received on Wednesday, 10 June 2020 23:29:51 UTC