Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

Dark mode behaves incorrectly when "auto" dark mode is enabled on macOS Catalina beta

  • 4 відповіді
  • 1 має цю проблему
  • 1 перегляд
  • Остання відповідь від Chad

more options

On the macOS Catalina beta, there's a new option to enable automatic darkmode switching at dusk/dawn. During the day, the OS is in light mode; after dark, it's in dark mode.

In Safari and Chrome, websites that use the prefers-color-scheme media query behave correctly, and display the light theme in the daytime, and the dark theme in the evening.

In Firefox, however, websites that have responsive color schemes are permanently stuck in dark mode when the automatic dark mode setting is enabled.

On the macOS Catalina beta, there's a new option to enable automatic darkmode switching at dusk/dawn. During the day, the OS is in light mode; after dark, it's in dark mode. In Safari and Chrome, websites that use the prefers-color-scheme media query behave correctly, and display the light theme in the daytime, and the dark theme in the evening. In Firefox, however, websites that have responsive color schemes are permanently stuck in dark mode when the automatic dark mode setting is enabled.

Усі відповіді (4)

more options

You can try to create a new Boolean pref on the about:config page and set its value to true.

  • ui.systemUsesDarkTheme = true

See also:

  • Bug 1494034 - Add support for CSS prefers-color-scheme media feature
  • Bug 1529323 - Make prefers-color-scheme respect the Firefox theme rather than the system theme

(please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
)

more options

I can likely make a temporary fix for this myself with your suggestion, but none the less this is definitely a bug in Firefox. Other major browsers correctly reflect the system darkmode.

more options

(and, moreover, as a web developer, I have no control over the configs a user in Firefox has set, so this will still make my website behave incorrectly)

more options

Hm, now that I think about it... this is actually maybe a bug in the browser theme.

https://bugzilla.mozilla.org/show_bug.cgi?id=1529323#c9

I have my theme set to "Default," but the browser is, I just noticed, still in dark mode. So the browser is not correctly reading the system theme, and the website is responding to the browser theme.

I'm not able to upload video here, but I've just confirmed that if I switch macOS to light mode, firefox switches to light mode; if I switch it to dark mode, firefox switches to dark mode; but if I switch it to auto, firefox does not respond to the change, and remains in either dark or light mode, which ever was last set.

I had my os in dark mode on Mojave, so when I switched to auto on Catalina, dark mode was the last one set. This means Firefox has been in dark mode ever since.

So the bug here is that Firefox doesn't know what to do when a user's mac is in "auto" darkmode.

Змінено Chad