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

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

From: Melanie Richards via GitHub <sysbot+gh@w3.org>
Date: Sat, 25 Jul 2020 00:21:46 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-663781781-1595636504-sysbot+gh@w3.org>
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

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