W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2019

[csswg-drafts] [mediaqueries-5] UA guidance on light vs no-preference (#3857)

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Fri, 19 Apr 2019 22:22:38 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-435320341-1555712557-sysbot+gh@w3.org>
fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [mediaqueries-5] UA guidance on light vs no-preference ==
The Web consists of a wide variety of content types, some of which are application-like, and others which are art-like: for dark mode to be useful for e.g. night reading, as has been suggested, authors need to perceive (prefers-color-scheme: dark) not as a preference for UI in app-like interfaces, but as a global preference for content. I would also like authors to be able to consider (prefers-color-scheme: light) to be as serious as (prefers-color-scheme: dark), and both to be perceived as a real and meaningful request from the user.

For that to work, however, no-preference needs to be a thing. In other words, an OS can't have a light vs dark switch that applies to UI elements which is then simply propagated through the UA to the page. The default case needs to be no-preference, indicating that the page should theme itself however it sees fit, and both "light" and "dark" need to reflect a desire for not just the OS widgets, but content in general, to be "light" or "dark". Otherwise "(prefers-color-scheme: light)" becomes a meaningless signal, and we may as well remove it.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3857 using your GitHub account
Received on Friday, 19 April 2019 22:22:40 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:07 UTC