summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-07-ref.html
blob: 06d199ef0bde83f883133c15a9d7dcd460933183 (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
28
29
30
31
32
<!DOCTYPE html>
<meta charset="utf-8">
<title>Forced colors mode - transparent colors reference.</title>
<style>
  p {
    color: CanvasText;
    forced-color-adjust: none;
  }
  div {
    forced-color-adjust: none;
  }
</style>
<body>
  <div style="background-color: Canvas;">
    <p>
      The text color should be overridden, and the background color of the
      div element should also be overridden in forced colors mode.
    </p>
  </div>
  <div style="background-color: transparent;">
    <p>
      The text color should be overridden, but the background color of the
      div element should remain transparent in forced colors mode.
    </p>
  </div>
  <div style="background-color: rgba(0, 0, 0, 0);">
    <p>
      The text color should be overridden, but the background color of the
      div element should remain transparent in forced colors mode.
    </p>
  </div>
</body>