搜尋 Mozilla 技術支援網站

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

了解更多

Black text on dark background on some sites

  • 4 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

Hi,

When I upgraded to version 98.0 (64-bit) on Windows 10, some websites like Mashable.com and Bigthink.com display black text on a dark background. See attached image.

This is not theme-dependent.

I tried switching network.http.http3.enabled to "false", but that was fixed anyway, so it had no effect.

Hi, When I upgraded to version 98.0 (64-bit) on Windows 10, some websites like Mashable.com and Bigthink.com display black text on a dark background. See attached image. This is not theme-dependent. I tried switching network.http.http3.enabled to "false", but that was fixed anyway, so it had no effect.
附加的畫面擷圖

所有回覆 (4)

more options

It does not affect the display of most sites. These two are the only examples so far.

more options

You can check the default colors (back text on white background) and also make sure you allow pages to choose their own colors.

  • Settings -> General: Fonts & Colors -> Colors: "Override the colors specified by the page with your selections above"

Try "Never" if the default "Only with High Contrast themes" isn't working.

You can select a theme that has dark text on the tabs (toolbars) if you currently use a theme with light text.

You can change this pref on the about:config page from 3 to 2 to revert to the Firefox 94 behavior regarding to prefer dark or light background for webpages.

  • layout.css.prefers-color-scheme.content-override [dark:0, light:1, system:2, browser:3]

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

more options

Thank you so much for the answer, but none of the settings did anything to the aforementioned sites. I also tried changing (...)content-override to 1, and it worked on all the other pages I have open, but not those two. :P

I restarted FF in between.

more options

The bigthink.com website has parts (.bg-black) that have a black background and light text, so that happens by design and in intentional. If you get the dark background, but not the light text then something seems to override the light text color.

由 cor-el 於 修改