[csswg-drafts] [mediaqueries-5] Clarification on prefers-color-scheme issues

jonathanKingston has just created a new issue for https://github.com/w3c/csswg-drafts:

== [mediaqueries-5] Clarification on prefers-color-scheme issues ==
[Whilst working on trying to implement this for Firefox ](https://bugzilla.mozilla.org/show_bug.cgi?id=1494034#c7) I and @emilio noticed some ambiguity with [the spec text](
https://drafts.csswg.org/mediaqueries-5/#prefers-color-scheme).

> The prefers-color-scheme media feature is used to detect if the user has requested the system use a light or dark color theme.

1. Does it really matter if this is a system or user agent preference? For example in non supporting operating systems Firefox could choose to pass `light` and `dark` when the user has enabled these themes and `no-preference` when they haven't.

2. `(prefers-color-scheme)` never appears to match, however shouldn't it match whenever the user has a preference? Especially given the boolean context statement.

3. We are at slight risk of sites never supporting no-prefererence given safari is only using `light`/`dark` and always returning true for `no-preference`.

/cc @grorg @emilio 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3278 using your GitHub account

Received on Friday, 2 November 2018 10:11:45 UTC