Make @media (prefers-color-scheme:) respect features::kWebUIDarkMode
while on chrome:// URLs This allows us to use this mechanism in CSS: @media (prefers-color-scheme: dark) { } to vary styles for Chrome web UI in dark mode while also disabling via feature on certain platforms. This unblocks us from migrating to the @media query (from the existing [dark] attribute syntax) and later removing a bit of JS/C++ custom code in favor of simply using the web platform. R=futhark@chromium.org BUG=965811 Change-Id: I79f4582ce21661d7ba2f6a33f3f054f5ff62d0db Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1626024 Auto-Submit: Dan Beam <dbeam@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Commit-Queue: Dan Beam <dbeam@chromium.org> Cr-Commit-Position: refs/heads/master@{#667245}
Showing
Please register or sign in to comment