W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2020

Re: [csswg-drafts] [mediaqueries-5] `prefers-contrast: high` media feature doesn't account for macOS and iOS (#2943)

From: James Craig via GitHub <sysbot+gh@w3.org>
Date: Mon, 10 Aug 2020 21:56:54 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-671610057-1597096613-sysbot+gh@w3.org>
I'm available at [2020-08-12 T 16:00 GMT](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20200812T16) (this Wednesday at 9 AM Pacific) to discuss. 

Ideally I'd like to see a useful boolean match (or otherwise very short authoring match) for `prefers-contrast`… I think this could be achieved a few different ways:

Updating my proposal list from above: 

**Option 1: Change the current value `high` to `increase`.**

prefers-contrast: [ no-preference | increase ] /* the `increase` value can match both the iOS/macOS "increased" contrast and Windows "high" or "max" contrast settings. */

**Option 2: Change `high` value to `max` and add new value `increase`.**

Allows distinction between the different settings, but authors would likely 

prefers-contrast: [ no-preference | increase | max ] 

Forego `low` or `decrease` value until any native platform implements a feature that makes the distinction from `forced-colors` necessary.

**Common Usage: Same.**

In both proposals above, the 99.9% author usage case would be to use the boolean shorthand below, which would match all currently known "increased" or "max" contrast setting implementations.

@media (prefers-contrast)

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 10 August 2020 21:56:56 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:13 UTC