X
點擊此處開啟此網站的行動版。

技術支援討論區

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

已張貼

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 於 修改

引用

額外的系統細節

應用程式

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

更多資訊

提出問題者

(removed comment, figured out how to edit post)

(removed comment, figured out how to edit post)

由 jhchnc 於 修改

這篇文章有幫助嗎?
引用
TyDraniu
  • Top 25 Contributor
302 個解決方法 1686 個答案

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.

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 [https://bugzilla.mozilla.org/show_bug.cgi?id=1529323 bug 1529323], devs are considering setting 'prefers-color-scheme: dark' when the dark theme is chosen in Firefox.
這篇文章有幫助嗎?
引用
問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題