Bug 1751088 - Choose tabpanel background based on content preferred color-scheme. r=dao, a=RyanVM
If the theme is dark but user prefers light pages, the background of the tabpanel should arguably be light, since it can be seen across some navigations. Expose a -moz-content-prefers-color-scheme media query to chrome pages so that our UI can correctly query it (and remove the unused -moz-proton atom while at it). Differential Revision: https://phabricator.services.mozilla.com/D136437
Showing
- browser/themes/shared/tabs.inc.css 1 addition, 1 deletionbrowser/themes/shared/tabs.inc.css
- layout/style/GeckoBindings.h 1 addition, 1 deletionlayout/style/GeckoBindings.h
- layout/style/nsMediaFeatures.cpp 5 additions, 4 deletionslayout/style/nsMediaFeatures.cpp
- layout/style/test/chrome/chrome-only-media-queries.js 2 additions, 0 deletionslayout/style/test/chrome/chrome-only-media-queries.js
- layout/style/test/test_media_queries.html 2 additions, 2 deletionslayout/style/test/test_media_queries.html
- servo/components/style/gecko/media_features.rs 28 additions, 4 deletionsservo/components/style/gecko/media_features.rs
- xpcom/ds/StaticAtoms.py 1 addition, 1 deletionxpcom/ds/StaticAtoms.py
Loading
Please register or sign in to comment