summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-font-metrics-002-ref.html
blob: 13b38d8bbf8accc4d9934738118b551157b1dde9 (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
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Highlight API Test: </title>
<head>
  <style>
    div {
      margin: 40px;
      font-size: 20px;
    }
    #h1 {
      text-underline-offset: 10px;
      text-decoration-line: underline;
      text-decoration-color: green;
      text-decoration-thickness: 4px;
    }
    #h2 {
      text-underline-offset: 20px;
      text-decoration-line: underline;
      text-decoration-color: blue;
      text-decoration-thickness: 2px;
    }
  </style>
</head>
<body>
  <div id="h1">A green 10px offset underline 4px thick</div>
  <div id="h2">A blue 20px offset underline 2px thick</div>
</body>