forked from w3c/csswg-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
text-baseline-003-lr.xht
54 lines (50 loc) · 2.23 KB
/
text-baseline-003-lr.xht
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Writing Modes Test: text baseline alignment - plain text (central alignment with vertical layout)</title>
<link rel="author" title="Hajime Shiozawa" href="mailto:[email protected]" />
<link rel="help" title="4.2. Text Baseline" href="http://www.w3.org/TR/css3-writing-modes/#text-baselines" />
<meta name="assert" content="This test checks the generation of text baseline. When 'writing-mode' is vertical and when 'text-orientation' is 'mixed', 'upright' or 'use-glyph-orientation', then the central baseline is used as the dominant baseline." />
<meta name="flags" content="ahem image" />
<style type="text/css"><![CDATA[
div > p {
font: 40px/1 "Ahem";
background-color: orange;
}
img {
margin-top: -200px;
}
/* writing-mode property */
.vertical-lr {
writing-mode: vertical-lr;
}
/* text-orientation property */
.mixed {
text-orientation: mixed;
}
.upright {
text-orientation: upright;
}
.use-glyph-orientation {
text-orientation: use-glyph-orientation;
}
/* font-size */
.half {
vertical-align: top;
font-size: 0.5em;
}
]]></style>
</head>
<body>
<p>Test passes if ...</p>
<ol>
<li>the <strong>left</strong> edge of black stripe is touching a thin blue line in each 3 orange rectangles and</li>
<li>all 3 orange rectangles are <strong>identical</strong>.</li>
</ol>
<div class="vertical-lr">
<p class="mixed"><span class='half'>TOrieMixed</span><img src="./support/blue-vert-line-1x220.png" alt="Image download support must be enabled" /></p>
<p class="upright"><span class='half'>TOrUPright</span><img src="./support/blue-vert-line-1x220.png" alt="Image download support must be enabled" /></p>
<p class="use-glyph-orientation"><span class='half'>UseGlyhOri</span><img src="./support/blue-vert-line-1x220.png" alt="Image download support must be enabled" /></p>
</div>
</body>
</html>