summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-23-ref.html
blob: af36e40f18b0cc1ad60ab117dcdb126bdaf67c84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<meta charset="utf-8">
<title>Forced colors mode - non-inherited cache reference.
  Ensures that forced colors styles don't get overridden by non-inherited
  cached values.
</title>
<style>
  body {
    forced-color-adjust: none;
  }
  #a {
    color: CanvasText;
  }
  #b {
    background: rgb(0, 128, 0);
    box-shadow: 5px 10px rgb(255, 255, 0);
    color: rgb(0, 0, 255);
  }
</style>
<body>
  <div>
    <span id="a">text</span>
  </div>
  <div>
    <span id="b">text</span>
  </div>
</body>