W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

Re: [csswg-drafts] [mediaqueries-5] prefers-contrast: high media feature does not accurately describe the macOS/iOS state

From: James Craig via GitHub <sysbot+gh@w3.org>
Date: Fri, 20 Jul 2018 21:03:56 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-406726537-1532120635-sysbot+gh@w3.org>
A few possible variants to solve this:

1. Perhaps a numeric value, 0-100 where 50 is the default (or -100-100, where 0 is the default). There could be named values too. e.g. `high` = 100, `increase` = 60? The queries could include a grreater-than/less-than (</>) syntax such as:

````css
@media (prefers-contrast > 0) {}
@media (prefers-contrast > increase) { /* matches both 'increase' and 'high' values */ }
```

2. Have two separate media features that would allow use in a boolean context:
`prefers-increased-contrast: no-preference | increase | high` and `prefers-reduced-contrast: no-preference | reduce | low` 

```css
@media (prefers-increased-contrast)  { /* matches 'increase' or 'high' */ }
@media (prefers-reduced-contrast)  { /* matches 'reduce' or 'low' */ }
```


-- 
GitHub Notification of comment by cookiecrook
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2943#issuecomment-406726537 using your GitHub account
Received on Friday, 20 July 2018 21:03:57 UTC

This archive was generated by hypermail 2.3.1 : Friday, 20 July 2018 21:04:06 UTC