summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-container-metrics-002-ref.html
blob: 98ccfa5b11c7dcb8c83beca3f863742792bb30af (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
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Highlight API Test Reference</title>
<head>
  <style>
    .wrapper {
      width: 200px;
      height: 100px;
      text-underline-offset: 4px;
      text-decoration-line: underline;
      text-decoration-color: green;
      text-decoration-thickness: 4px;
    }
    #h2 {
      text-underline-offset: 2svw;
      text-decoration-line: underline;
      text-decoration-color: green;
      text-decoration-thickness: 4svh;
    }
  </style>
</head>
<body>
  <div class="wrapper">With container size</div>
  <div id="h2">Without container size</div>
</body>