OLD | NEW |
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/
DTD/xhtml11.dtd"> | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/
DTD/xhtml11.dtd"> |
3 <html xmlns="http://www.w3.org/1999/xhtml"> | 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
4 <head> | 4 <head> |
5 <title>CSS Writing Modes Test: text-orientation - sideways</titl
e> | 5 <title>CSS Writing Modes Test: text-orientation - sideways</titl
e> |
6 <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiya
ma@gmail.com" /> | 6 <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiya
ma@gmail.com" /> |
7 <link rel="help" title="5.1. Orienting Text: the 'text-orientati
on' property" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation"
/> | 7 <link rel="help" title="5.1. Orienting Text: the 'text-orientati
on' property" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation"
/> |
8 <link rel="match" href="reference/text-orientation-014-ref.xht"
/> | 8 <link rel="match" href="reference/text-orientation-014-ref.xht"
/> |
9 <meta http-equiv="content-language" content="en" /> | 9 <meta http-equiv="content-language" content="en" /> |
10 <meta name="flags" content="ahem" /> | 10 <meta name="flags" content="ahem" /> |
11 <meta name="assert" content="This test checks that 'text-orienta
tion: sideways' causes text to be set as if in a horizontal layout, but rotated
90° clockwise, in vertical writing modes. This is effective to verify 1.block fl
ow direction, 2.inline direction and 3.glyph orientation." /> | 11 <meta name="assert" content="This test checks that 'text-orienta
tion: sideways' causes text to be set as if in a horizontal layout, but rotated
90° clockwise, in vertical writing modes. This is effective to verify 1.block fl
ow direction, 2.inline direction and 3.glyph orientation." /> |
12 <style type="text/css"> | 12 <style type="text/css"> |
13 .view_ahem | 13 .view_ahem |
14 { | 14 { |
15 background: pink; | 15 background: pink; |
16 border: 1px solid black; | 16 border: 1px solid black; |
17 color: blue; | 17 color: blue; |
18 font: 20px/1 "Ahem"; | 18 font: 20px/1 "Ahem"; |
19 height: 3em; | 19 height: 3em; |
20 margin: 10px; | 20 margin: 10px; |
21 width: 3em; | 21 width: 3em; |
22 white-space: pre; | 22 white-space: pre; |
23 } | 23 } |
24 #test_ahem | 24 #test_ahem |
25 { | 25 { |
26 » » » » » -webkit-text-orientation: sideways;»
» » » /* The property to be tested */ | 26 » » » » » text-orientation: sideways;» »
» » /* The property to be tested */ |
27 -webkit-writing-mode: vertical-rl; | 27 -webkit-writing-mode: vertical-rl; |
28 } | 28 } |
29 #control_ahem | 29 #control_ahem |
30 { | 30 { |
31 -webkit-writing-mode: horizontal-tb; | 31 -webkit-writing-mode: horizontal-tb; |
32 } | 32 } |
33 .view | 33 .view |
34 { | 34 { |
35 border: 1px solid gray; | 35 border: 1px solid gray; |
36 font-size: 1.5em; | 36 font-size: 1.5em; |
37 line-height: 1.5; | 37 line-height: 1.5; |
38 margin-bottom: 10px; | 38 margin-bottom: 10px; |
39 width: 3em; | 39 width: 3em; |
40 -webkit-writing-mode: vertical-rl; | 40 -webkit-writing-mode: vertical-rl; |
41 } | 41 } |
42 #test | 42 #test |
43 { | 43 { |
44 » » » » » -webkit-text-orientation: sideways;»
» » » /* The property to be tested */ | 44 » » » » » text-orientation: sideways;» »
» » /* The property to be tested */ |
45 } | 45 } |
46 #control | 46 #control |
47 { | 47 { |
48 -webkit-text-combine: none; | 48 -webkit-text-combine: none; |
49 } | 49 } |
50 </style> | 50 </style> |
51 </head> | 51 </head> |
52 <body lang="en"> | 52 <body lang="en"> |
53 <!-- | 53 <!-- |
54 This test consists of a pair of sub-tests which compleme
nts each other. | 54 This test consists of a pair of sub-tests which compleme
nts each other. |
55 Logically, the test should verify 1.block flow direction
, 2.inline direction | 55 Logically, the test should verify 1.block flow direction
, 2.inline direction |
56 and 3.glyph orientation. The "Ahem" sub-test comes first
and checks 1. and 2. , | 56 and 3.glyph orientation. The "Ahem" sub-test comes first
and checks 1. and 2. , |
57 whereas "glyph" sub-test comes later and also checks 3. | 57 whereas "glyph" sub-test comes later and also checks 3. |
58 --> | 58 --> |
59 <p>Test passes if a pair of rectangles is <strong>identical</str
ong> including <strong>layout</strong> and <strong>orientation</strong>.</p> | 59 <p>Test passes if a pair of rectangles is <strong>identical</str
ong> including <strong>layout</strong> and <strong>orientation</strong>.</p> |
60 <div class="view_ahem"><span id="test_ahem">123 | 60 <div class="view_ahem"><span id="test_ahem">123 |
61 56 | 61 56 |
62 7 </span></div> | 62 7 </span></div> |
63 <div class="view_ahem"><span id="control_ahem">7 1 | 63 <div class="view_ahem"><span id="control_ahem">7 1 |
64 52 | 64 52 |
65 63</span></div> | 65 63</span></div> |
66 <hr /> | 66 <hr /> |
67 <div class="view"><span id="test">123Abc<br />def456</span></div
> | 67 <div class="view"><span id="test">123Abc<br />def456</span></div
> |
68 <div class="view"><span id="control">123Abc<br />def456</span></
div> | 68 <div class="view"><span id="control">123Abc<br />def456</span></
div> |
69 </body> | 69 </body> |
70 </html> | 70 </html> |
OLD | NEW |