搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How can I use the "prefers-color-scheme: dark" CSS media query on FF Developers Edition, Ubuntu 18.04?

  • 2 回覆
  • 1 有這個問題
  • 19 次檢視
  • 最近回覆由 TyDraniu

more options

I'm trying to test latest CSS properties that I think FF 67 supports. Specifically:

prefers-color-scheme: dark

Is this something I can set in FF? Or is this an OS level integration?

Thanks.

I'm trying to test latest CSS properties that I think FF 67 supports. Specifically: prefers-color-scheme: dark Is this something I can set in FF? Or is this an OS level integration? Thanks.

由 jhchnc 於 修改

所有回覆 (2)

more options

(removed comment, figured out how to edit post)

由 jhchnc 於 修改

more options

It's OS based and probably you can't set the dark mode in Ubuntu. It works in Win10 and perhaps in Mac.

But according to bug 1529323, devs are considering setting 'prefers-color-scheme: dark' when the dark theme is chosen in Firefox.