Intent to implement and ship: CSS 'prefers-color-scheme' media feature
240 views
Skip to first unread message
Mats Palmgren
unread,
Feb 15, 2019, 3:38:20 PM2/15/19
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-platform
Summary:
The 'prefers-color-scheme' media feature is way for pages to detect
if the user prefers a light or dark color theme. The values are
'light', 'dark', and 'no-preference'. If the "resist fingerprinting"
feature is active we always match 'light'. If the media type is
'print' we always match 'light'. Otherwise, we try to determine
a value from the user's current "desktop theme". This should work
well on recent versions of OSX and Windows. On Linux, we don't
know how to determine a value from the system so we match
'no-preference' there - help wanted:
https://bugzilla.mozilla.org/show_bug.cgi?id=1525775
Preference behind which this will be implemented:
The feature is always enabled, but there is an existing hidden
preference to set a value (integer), ui.systemUsesDarkTheme:
0 = light
1 = dark
2 = no-preference
Is this feature enabled by default in sandboxed iframes?
Yes, but if widget look-and-feel features are disabled in
sandboxed iframes then we'll match 'no-preference'.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mats Palmgren, dev-platform
On Wed, Mar 20, 2019 at 8:45 AM Hiroyuki Ikezoe <hik...@mozilla.com> wrote:
> The Android backend for prefers-color-scheme didn't get on Firefox 67,
> it's just landed on mozilla-central, will be shipped in Firefox 68.
>
The backend was uplifted into Firefox 67 beta yesterday. So
prefers-color-scheme will be available on all platforms in Firefox 67.
Thanks,
hiro
Gijs Kruitbosch
unread,
Apr 1, 2019, 7:26:43 AM4/1/19
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Are there also plans to revisit our longstanding
foreground/background/link/visited-link colouring prefs (as well as
their companion use_system_colors pref) in light of this set of changes?
They've never really worked very well, nobody has really taken on fixing
their UX, and it would be nice if we could switch to something that was
better supported.