Commit 2d32e03b authored by dpapad's avatar dpapad Committed by Commit Bot

Interstitials/neterror: Enable scrollbars to follow system's dark theme.

Previously scrollbars always appeared light, even if a WebUI
page was otherwise respecting dark mode. The upcoming
FormControlsDarkMode feature allows webpages to specify whether
scrollbars should follow the system's theme, by specifying a new
<meta name="color-scheme"> tag.

Repro instructions
1) Launch Chrome with the following flags to experience dark scrollbars.
--enable-features=WebUIDarkMode,CSSColorSchemeUARendering \
--force-dark-mode
2) Go to chrome://inerstitials and open any interstitial category,
   observe scrollbars.
3) Go to a non-existing page (eg chrome://foo), observe scrollbars.

Bug: 1142291
Change-Id: If85d49dcfe7eeb404eb4a472ce8a1dee135e57ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2521219
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Auto-Submit: dpapad <dpapad@chromium.org>
Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824625}
parent 5432d271
......@@ -2,6 +2,7 @@
<html dir="$i18n{textdirection}" lang="$i18n{language}">
<head>
<meta charset="utf-8">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#fff">
<meta name="viewport" content="width=device-width, initial-scale=1.0,
maximum-scale=1.0, user-scalable=no">
......
......@@ -2,6 +2,7 @@
<html dir="$i18n{textdirection}" lang="$i18n{language}">
<head>
<meta charset="utf-8">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#fff">
<meta name="viewport"
content="initial-scale=1, minimum-scale=1, width=device-width">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment