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

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