• Dan Beam's avatar
    Make @media (prefers-color-scheme:) respect features::kWebUIDarkMode · f0a7e117
    Dan Beam authored
    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: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Dan Beam <dbeam@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#667245}
    f0a7e117
chrome_content_browser_client_browsertest.cc 27 KB