summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-writing-modes/text-orientation-sideways-001.xht
blob: 377f8f9d3548312df5273b49b9b555dcd2230c08 (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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>CSS Writing Modes Test: text-orientation - sideways in vertical-rl writing mode</title>
		<link rel="author" title="Kazuaki Takemura" href="mailto:takemura@networksoft.co.jp" />
		<link rel="help" title="5.1. Orienting Text" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation" />
		<meta name="flags" content="image" />
		<meta name="assert" content="This test checks that general horizontal text (include Japanese,etc) rotates 90 degrees clockwise, and it is verified whether the characters are aligned in the vertical direction." />
		<style type="text/css"><![CDATA[
			@font-face
			{
				font-family: "DejaVuSerifBook";
				src: url("support/DejaVuSerif-webfont.woff") format("woff");
				/* Filesize: 18096 bytes (17.7 KBytes) */
			}

			div {
				border: 1px solid gray;
				float: left;
				color: blue;
				font-family: "DejaVuSerifBook";
				font-size: 30px;
				line-height: 1.4; /* equivalent to 42px:
				so that top-half-leading outside content is 6px
				and bottom-half-leading outside content is 6px */
				margin: 10px;
			}

			div#vertical
			{
				writing-mode: 				vertical-rl;
				text-orientation:			sideways;
			}

		    img {vertical-align: top;}

		]]></style>
	</head>
	<body>

	<p>Test passes if both "Text sample" rectangles
		have the <strong>same order</strong>, the <strong>same orientation</strong> and the <strong>same layout</strong>:
		"Text sample" should be displayed rotates 90 degrees clockwise.</p>

	<div id="vertical">Text sample</div>

	<div><img src="./support/text-orientation-sideways-right-001.png" width="42" height="184" alt="Image download support must be enabled" /></div>

	</body>
</html>