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 and dark when the user has enabled these themes and no-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 for no-preference.
/cc @grorg @emilio
Whilst working on trying to implement this for Firefox I and @emilio noticed some ambiguity with the spec text.
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
lightanddarkwhen the user has enabled these themes andno-preferencewhen 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/darkand always returning true forno-preference./cc @grorg @emilio