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 23:41:43 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-671643083-1597102902-sysbot+gh@w3.org>
Another possibility that would allow the `low` or `decreased` value is to associate the named values with a linear numeric scale like Meredith mentioned, then using the greater-than/less-than syntax:

@media (prefers-contrast > increase) { } /* matches `increase` or `max` but not `low` or `no-preference` */
@media (prefers-contrast < max) { } /* matches `low`/`decrease`, `no-preference`, or `increase` but not `max` */

I wanted to mention the possibilities above, though these are less desirable to me because of:
- the added complexity in general, and
- the boolean would match the `low` value... therefore `@media (prefers-contrast)` could mean the opposite: "does NOT prefer contrast."

GitHub Notification of comment by cookiecrook
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2943#issuecomment-671643083 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 23:41:45 UTC

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