summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-02.html
blob: 414d3c1d4a726cf8551307ec86b2cdc132a3dba3 (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
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<meta charset="utf-8">
<title>Forced colors mode - style overrides for text.</title>
<link rel="help" href="https://www.w3.org/TR/css-color-adjust-1/#forced-colors-properties">
<link rel=match href="forced-colors-mode-02-ref.html">
<style>
  body {
    background-color: lightblue;
  }
  #a {
    background-color: lightgreen;
    border: 25px solid green;
    box-shadow: 2px 2px purple;
    color: orange;
    forced-color-adjust: auto;
    margin: 25px;
    padding: 25px;
    text-shadow: 1px 1px gray;
    width: 300px;
  }
  #b {
    background-color: lightgreen;
    border: 25px solid green;
    box-shadow: 2px 2px purple;
    color: orange;
    forced-color-adjust: none;
    margin: 25px;
    padding: 25px;
    text-shadow: 1px 1px gray;
    width: 300px;
  }
</style>
<body>
  <div id="a">
    The colors and shadows of this text and text box should be overridden when in
    forced colors mode (forced-color-adjust is set to auto.)
  </div>
  <div id="b">
    The colors and shadows of this text and text box should NOT be overridden when in
    forced colors mode (forced-color-adjust is set to none.)
  </div>
</body>