Closed Bug 1746117 Opened 4 years ago Closed 4 years ago

Not automatically updating theme based on prefers-color-scheme

Categories

(Core :: CSS Parsing and Computation, defect, P3)

Firefox 95
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: laurie_opperman, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0

Steps to reproduce:

Specify dark mode styles with media-query prefers-color-scheme

Actual results:

In Firefox 94, when updating the system theme between dark and standard/light (on Linux, GNOME Shell 3.36.9), my website switches between dark mode and light mode.

In Firefox 95, this doesn't happen, and the website stays the same theme once opened (default-styled form elements do switch however).

Expected results:

Website switches between dark and light modes.

Summary: Not automatically updating prefers-color-scheme → Not automatically updating them base on prefers-color-scheme
Summary: Not automatically updating them base on prefers-color-scheme → Not automatically updating theme based on prefers-color-scheme

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Can you please use mozregression tool to find broken commit?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Use_Mozregression_tool
Thanks!

Flags: needinfo?(laurie_opperman)
Priority: -- → P3

The dark/light theme for websites (those that respect prefers-color-scheme) is now based on the browser theme and not the OS, this was intentionally changed with bug 1529323

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Flags: needinfo?(laurie_opperman)
Resolution: --- → INVALID
Component: Widget: Gtk → CSS Parsing and Computation
See Also: → 1529323
You need to log in before you can comment on or make changes to this bug.