dark mode web site setting doesn't work on linux
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
People
(Reporter: slandden, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0
Steps to reproduce:
Opening a new profile in nightly
set dark mode in settings ( which set browser.in-content.dark-mode to true)
went to https://ziglang.org/documentation/master/
Actual results:
not using dark style
Expected results:
used dark style
Hi Sean,
The dark theme media query on the ziglang.org is triggered on my Firefox (69, X11) when I try either of the following:
- I run Gnome Tweaks and select Appearance => Themes => Applications => Adwaita (Dark)
- I install the https://addons.mozilla.org/en-US/firefox/addon/dark-mode-website-switcher/ addon
I believe that browser.in-content.dark-mode
is not related to forcing the media selector (esp. after looking at the code to the addon).
And when I search on open and closed bugs that refer to browser.in-content.dark-mode
the media query selector does not come up.
I'm asking which, if any, pref forces it.
Reporter | ||
Comment 2•5 years ago
|
||
Indeed you are correct. Maybe the mozilla dark-mode should follow the system one then.
Comment 3•5 years ago
|
||
See https://github.com/NixOS/nixpkgs/issues/61965 for a downstream issue report with some screenshots. It's surprising that Dark Theme can be selected, yet prefers-color-scheme will choose the "light" theme. Here is another example of user confusion: https://twitter.com/rsr_galo/status/1131284530785071104
In my opinion, if Default Theme is selected, Firefox should try to determine based on system configuration whether the intended mode is "light" or "dark" or maybe neither. However if Dark Theme is selected, this seems to me to be a clear indication from the user that they wish to override the system setting and have Firefox report prefers-color-scheme as dark.
Do Firefox devs agree with this?
Comment 4•5 years ago
|
||
I think further adjustments to the Dark Theme and hence a solution related to situations similar to this report are already discussed in bug 1529323.
Comment 5•5 years ago
|
||
Yes, I am pretty sure this is a dup of bug 1553013.
Comment 6•5 years ago
|
||
Is that a typo? That bug seems unrelated to me.
Comment 7•5 years ago
|
||
yes, pasted a wrong bug number. :/
Description
•