summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-font-metrics-001-ref.html
blob: 76b7317caabe5bedf10a98bef5cade11a4f6458e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Highlight API Test: </title>
<head>
  <style>
    div {
      margin: 50px;
      font-size: 40px;
      text-underline-offset: 0.5em;
      text-decoration-line: underline;
      text-decoration-color: green;
      text-decoration-thickness: 0.25rem;
    }
    #h2 {
      font-size: 20px;
    }
  </style>
</head>
<body>
  <div id="h1">Font relative units with 40px font</div>
  <div id="h2">Font relative units with 20px font</div>
</body>