summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-07.html
blob: 765868a2df4a6387531c66e828bee1a65d39cf19 (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
<!DOCTYPE html>
<meta charset="utf-8">
<title>Forced colors mode - transparent colors.</title>
<link rel="help" href="https://www.w3.org/TR/css-color-adjust-1/#forced-colors-properties">
<link rel=match href="forced-colors-mode-07-ref.html">
<style>
  p {
    color: transparent;
  }
</style>
<body>
  <div style="background-color: rgb(0, 0, 255);">
    <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>