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

[csswg-drafts] [mediaqueries-5] redundant media feature (#5359)

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Fri, 24 Jul 2020 13:17:08 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-665162341-1595596627-sysbot+gh@w3.org>
frivoal has just created a new issue for https://github.com/w3c/csswg-drafts:

== [mediaqueries-5] redundant media feature ==
Given that we now have `prefers-contrast: high | low` and `prefers-color-scheme: light | dark`, do we still need `light-level`?

It seems to me that user agents could react to the situations described by `light-level: washed` and `light-level: dim` by setting an appropriate combination of values through `prefers-contrast` and `prefers-color-scheme` (possibly giving the user a choice as to how they want the mapping to work).

In that case, we wouldn't really need the `light-level` at all, would we?

In fact, macOS does something that isn't quite that, but goes in that direction: in addition to its light and dark modes, it has an auto mode that picks between light or dark depending on the time of the day. Maybe instead of the `light-level` feature, we could add a Note indicating that UAs are may (should?) infer preferences like `prefers-contrast` or `prefers-color-scheme` based on environmental factors, such as light levels, time of the day, etc.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5359 using your GitHub account
Received on Friday, 24 July 2020 13:17:09 UTC

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