We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

websites checkboxes design replaced by windows 11 forced style and color.

more options

I recently replaced my old laptop by a new one after battery life issue (and for free thks total refund warrantly). But the new laptop unfortunately come with windows 11.

and like with windows 10, FF 97+ force the windows OS color theme style for checkboxes over the websites stylised ones (like a dark themed website with its own original soft small dark gray checkboxes being replaced by big light blue windows ones making the design ugly) I tried the same trick as my former laptop by switching widget.non-native-theme.enabled to "false", but it caused a tab crash on all page using checkboxes. Restarting firefox solved the crash issue, but even if slightly different than native-theme.enabled on "true"(smaller and dark blue) the checkboxes are always a single forced windows like style on all sites

The trick worked easily on windows 10, how to force firefox to correctly use the websites own style for checkboxes and forms with windows 11? I don't want windows style take over the design of site i visiting.

I recently replaced my old laptop by a new one after battery life issue (and for free thks total refund warrantly). But the new laptop unfortunately come with windows 11. and like with windows 10, FF 97+ force the windows OS color theme style for checkboxes over the websites stylised ones (like a dark themed website with its own original soft small dark gray checkboxes being replaced by big light blue windows ones making the design ugly) I tried the same trick as my former laptop by switching '''widget.non-native-theme.enabled''' to "false", but it caused a tab crash on all page using checkboxes. Restarting firefox solved the crash issue, but even if slightly different than '''native-theme.enabled''' on "true"(smaller and dark blue) the checkboxes are always a single forced windows like style on all sites The trick worked easily on windows 10, how to force firefox to correctly use the websites own style for checkboxes and forms with windows 11? I don't want windows style take over the design of site i visiting.

所有回覆 (4)

more options

someone has a solution?

more options

Okay, I don't have Windows 11, so I'm guessing a bit here.

Keeping widget.non-native-theme.enabled set to true uses Firefox's built-in style sheets, which aim to be more consistent across platforms, while setting it to false causes Firefox to apply more platform-specific styling. Neither of these is related to whether pages can override Firefox's default form control styling.

Web pages CAN completely strip the browser styling on a checkbox in Firefox 54 and later by setting appearance: none (or -webkit-appearance: none). That creates the opportunity and obligation for the page to set the size, position, colors, etc., of that box, or it's invisible and unusable. So that means if the site isn't using that method, then it's hard to take advantage of it yourself without a bunch of work.

I relied on these pages for this information:

And thank you for asking because this is really cool. I think it means I can stop using pictures for fancy checkboxes in one of my add-ons.

more options

jscher2000 - Support Volunteer said

Keeping widget.non-native-theme.enabled set to true uses Firefox's built-in style sheets, which aim to be more consistent across platforms, while setting it to false causes Firefox to apply more platform-specific styling. Neither of these is related to whether pages can override Firefox's default form control styling.

But when i had this problem on windows 10 (with firefox 97 or98 update), turning the widget to false was the procedure asked to do, and it immediatly worked after refreshing (the blue like windows style checkboxe where replaced by the site own styling). the same trick failed in windows 11, and worse, opening or refreshing pages with checkboxes caused a "tab crashed error", until i returning the widget to "true", here refreshing the crashed tab returned to the website.

Like i said, restarting firefox to save the new config solved the crash issue, but forced another windows like blue checkboxes style in the few sites i checked.

由 thor94 於 修改

more options

Toggling the preference to false did not allow pages style to modify checkboxes for me on Windows 10 in Firefox 103. Are you sure you weren't using any other modifications?