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

Forgive my naivete here, but is there a reason the group settled on keyword values instead of a numeric system?

I wonder if the numeric system should be explored again:

* Clear expectations for the author on what contrast level they should support (how does an author reason about `high` or `increase` values? What is "high" enough?), baked into the MQ itself
* Helps disambiguate from the Windows High Contrast feature
* I received feedback from a framework developer that they'd actually prefer to have numeric values for `prefers-contrast`, as they conceptualize contrast on a sliding scale; should open this up to the broader web dev community for input, of course.

I suppose the challenges may be 1) making sure numeric values don't explode in volume (maybe go off WCAG levels?) and 2) numeric values may not always align 1:1 with OS platform settings, but I think you'll get authors writing mis-aligned contrast ratios without clear guidance, anyway.

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

Received on Saturday, 25 July 2020 00:21:49 UTC