forked from w3c/csswg-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
text-baseline-001-tb-use-glyph-orientation.xht
37 lines (34 loc) · 1.54 KB
/
text-baseline-001-tb-use-glyph-orientation.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
<!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 (alphabetical alignment with horizontal layout)</title>
<link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
<link rel="help" title="4.2. Text Baseline" href="http://www.w3.org/TR/css-writing-modes-3/#text-baselines" />
<link rel="match" href="reftest/text-baseline-001-ref.xht" />
<meta name="assert" content="This test checks the generation of text baseline. When 'writing-mode' is horizontal, then the alphabetical baseline is used as the dominant baseline." />
<meta name="flags" content="image" />
<style type="text/css"><![CDATA[
div > p, p#control {
font-size: 2em;
background-color: orange;
}
img {
margin-left: -210px;
}
/* writing-mode property */
.horizontal-tb {
writing-mode: horizontal-tb;
}
/* text-orientation property */
.use-glyph-orientation {
text-orientation: use-glyph-orientation;
}
]]></style>
</head>
<body>
<p>Test passes if the bottom of glyph 'L' is touching a thin blue line in a orange rectangle</p>
<div class="horizontal-tb">
<p class="use-glyph-orientation">LLLLLLLLLL<img src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" /></p>
</div>
</body>
</html>