summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text-decor/reference/text-decoration-thickness-percent-001-ref.html
blob: c37c0facdc1210ed5a5e086adf2267f9f0c1aabf (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
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Test case for text-decoration-thickness [reference]</title>
    <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
    <style>
        div {
            position: absolute;
            top: 50px;
            line-height: 100px;
        }
        u {
            display: inline-block;
            font: 20px/1 Ahem;
            width: 100px;
            text-align-last: justify;
            color: transparent;
            text-decoration: green underline;
            text-decoration-skip-ink: none;
            /* place underline exactly at the bottom of the text */
            text-underline-position: auto;
            text-underline-offset: 0px;
            text-decoration-skip-ink: none;
            text-decoration-thickness: 20px;
        }
    </style>
</head>
<body>
    <p>Test passes if there are four equal green rectangles and no red</p>
    <div>
      <u>X X</u>
      <u>X X</u>
      <u>X X</u>
      <u>X X</u>
    </div>
</body>
</html>