Description
Whilst working on trying to implement this for Firefox I and @emilio noticed some ambiguity with the spec text.
The prefers-color-scheme media feature is used to detect if the user has requested the system use a light or dark color theme.
-
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
anddark
when the user has enabled these themes andno-preference
when they haven't. -
(prefers-color-scheme)
never appears to match, however shouldn't it match whenever the user has a preference? Especially given the boolean context statement. -
We are at slight risk of sites never supporting no-prefererence given safari is only using
light
/dark
and always returning true forno-preference
.