summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-root-background.html
blob: c5766c7f99f9d22510da537fcb8b9035d356f2d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!doctype html>
<title>CSS Color Adjustment Test: color-scheme does not affect :root background</title>
<link rel="help" href="https://drafts.csswg.org/css-color-adjust/#color-scheme-processing">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
  :root { color-scheme: dark }
</style>
<body></body>
<script>
  test(() => {
    assert_equals(getComputedStyle(document.documentElement).backgroundColor, "rgba(0, 0, 0, 0)");
  }, "Root element background should be transparent for dark color-scheme.");
</script>