summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-writing-modes/text-combine-upright-decorations-001.html
blob: 49a03934de006e377d4b2afdf46e4dd4e0d2f7ab (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
<!DOCTYPE html>
<title>CSS Writing Modes Test: The resulting composition is treated as a signel glyph for decorations</title>
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#text-combine-layout" title="9.1.2. Layout Rules">
<link rel="match" href="reference/text-combine-upright-decorations-001.html">
<meta name="assert" content="The resulting composition is treated as a signel glyph for decorations">
<meta name="flags" content="ahem">
<link rel="author" title="Koji Ishii" href="mailto:kojiishi@gmail.com">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
#container {
    font: 50px/1 Ahem;
    text-decoration-skip-ink: none;
}
.vlr {
    writing-mode:vertical-lr;
}
.vrl {
    writing-mode:vertical-rl;
}
.test, .ref {
    border:solid thin;
    margin:.2em;
}
p {
    margin:0 .5em;
}
.tcy {
    text-combine-upright:all;
}
.underline {
    text-decoration:underline;
}
.overline {
    text-decoration:overline;
}
.emphasis {
    text-emphasis:filled;
}
</style>
<p>This test asserts the resulting composition is treated as a single glyph for decorations.
<p>Test passes if the following two boxes in each row are identical.
<div id=container>
    <div class=vlr>
        <div class=test>
            <p class=underline>X<span class=tcy>&#xA0;</span>X
            <p class=overline>X<span class=tcy>&#xA0;</span>X
            <p class=emphasis>X<span class=tcy>X</span>X
        </div>
        <div class=ref>
            <p class=underline>X&#xA0;X
            <p class=overline>X&#xA0;X
            <p class=emphasis>XXX
        </div>
    </div>
    <div class=vrl>
        <div class=test>
            <p class=underline>X<span class=tcy>&#xA0;</span>X
            <p class=overline>X<span class=tcy>&#xA0;</span>X
            <p class=emphasis>X<span class=tcy>X</span>X
        </div>
        <div class=ref>
            <p class=underline>X&#xA0;X
            <p class=overline>X&#xA0;X
            <p class=emphasis>XXX
        </div>
    </div>
</div>