summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-35.html
blob: 5d80e80418ce540d450ebc41577e0fdfbbde95d4 (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
<!DOCTYPE html>
<meta charset="utf-8">
<title>Forced colors mode - :visited fill/stroke.
</title>
<link rel="help" href="https://www.w3.org/TR/css-color-adjust-1/#forced-colors-properties">
<link rel=match href="forced-colors-mode-35-ref.html">
<style>
  a {
    fill: CurrentColor;
    stroke: CurrentColor;
  }
  a:visited {
    fill: blue;
    stroke: green;
  }
</style>
<a href="">
  The triangle below should NOT get overridden in forced colors mode.
  <svg height="200" width="350">
    <path d="M150 0 L75 200 L225 200 Z" />
  </svg>
  The triangle below should be currentColor in forced colors mode.
  <svg height="200" width="350" style="forced-color-adjust: auto;">
    <path d="M150 0 L75 200 L225 200 Z" />
  </svg>
</a>