summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text-decor/text-underline-position-001a.html
blob: f79fc9d39fe1a5e5ff21a4c7d16d2becc00a3e96 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>text-underline-position test case</title>
    <meta name="assert" content="text-underline-position:left has no effect in horizontal typographic mode">
    <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#underline-left">
    <link rel="match" href="reference/text-underline-position-001-ref.html">
    <style>
        .outer {
            margin: 1em;
            clear: left;
        }
        .outer > div {
            margin: .25em;
            padding: .25em;
            float: left;
            border: 1px dotted gray;
        }
        u {
            text-decoration: 2px green underline;
            text-underline-offset: .25em;
        }
        .test1 > div {
            writing-mode: initial;
        }
        .test2 > div {
            writing-mode: sideways-rl;
        }
        .test3 > div {
            writing-mode: sideways-lr;
        }
        .test4 > div {
            writing-mode: vertical-rl;
            text-orientation: sideways;
        }
        .test5 > div {
            writing-mode: vertical-lr;
            text-orientation: sideways;
        }
        .test {
            text-underline-position: left;
        }
    </style>
</head>
<body>
    <p class="instructions">Test passes if the left and right boxes match in each case:</p>
    <div class="outer test1">
        <div>
            <p><u class="test">underlined</u></p>
        </div>
        <div>
            <p><u>underlined</u></p>
        </div>
    </div>
    <div class="outer test2">
        <div>
            <p><u class="test">underlined</u></p>
        </div>
        <div>
            <p><u>underlined</u></p>
        </div>
    </div>
    <div class="outer test3">
        <div>
            <p><u class="test">underlined</u></p>
        </div>
        <div>
            <p><u>underlined</u></p>
        </div>
    </div>
    <div class="outer test4">
        <div>
            <p><u class="test">underlined</u></p>
        </div>
        <div>
            <p><u>underlined</u></p>
        </div>
    </div>
    <div class="outer test5">
        <div>
            <p><u class="test">underlined</u></p>
        </div>
        <div>
            <p><u>underlined</u></p>
        </div>
    </div>
</body>
</html>