OLD | NEW |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
2 | 2 |
3 <html xmlns="http://www.w3.org/1999/xhtml"> | 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
4 | 4 |
5 <head> | 5 <head> |
6 | 6 |
7 <title>CSS Writing Modes Test: horizontal-tb - block flow direction of block-l
evel boxes</title> | 7 <title>CSS Writing Modes Test: horizontal-tb - block flow direction of block-l
evel boxes</title> |
8 | 8 |
9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB
ugsSection/css21testsuite/" /> | 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB
ugsSection/css21testsuite/" /> |
10 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#writing-mode"
title="3.1 Block Flow Direction: the writing-mode property" /> | 10 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#writing-mode"
title="3.1 Block Flow Direction: the writing-mode property" /> |
11 <link rel="match" href="block-flow-direction-001-ref.xht" /> | 11 <link rel="match" href="block-flow-direction-001-ref.xht" /> |
12 | 12 |
13 <meta content="ahem" name="flags" /> | 13 <meta content="ahem" name="flags" /> |
14 <meta content="This test checks that block-level boxes in a 'horizontal-tb' wr
iting mode are laid out one after the other, vertically, with the first beginnin
g at the top of a containing block; they are ordered from top to bottom meaning
that the 1st block box is the topmost one, then the 2nd block is juxtaposed at i
ts bottom, then the 3rd block is juxtaposed to the 2nd block at its bottom, etc.
.." name="assert" /> | 14 <meta content="This test checks that block-level boxes in a 'horizontal-tb' wr
iting mode are laid out one after the other, vertically, with the first beginnin
g at the top of a containing block; they are ordered from top to bottom meaning
that the 1st block box is the topmost one, then the 2nd block is juxtaposed at i
ts bottom, then the 3rd block is juxtaposed to the 2nd block at its bottom, etc.
.." name="assert" /> |
15 | 15 |
16 <style type="text/css"><![CDATA[ | 16 <style type="text/css"><![CDATA[ |
17 html { writing-mode: horizontal-tb; } | 17 html |
| 18 { |
| 19 writing-mode: horizontal-tb; |
| 20 } |
18 /* | 21 /* |
19 " | 22 " |
20 The principal writing mode of the document is determined by the writing-mode | 23 The principal writing mode of the document is determined by the writing-mode |
21 and direction values specified on the root element. | 24 and direction values specified on the root element. |
22 " | 25 " |
23 */ | 26 */ |
24 | 27 |
25 body | 28 body |
26 { | 29 { |
27 color: yellow; | 30 color: yellow; |
28 font: 20px/1 Ahem; | 31 font: 20px/1 Ahem; |
29 width: 21em; | 32 width: 21em; |
30 } | 33 } |
31 | 34 |
32 div | 35 div |
33 { | 36 { |
34 background-color: blue; | 37 background-color: blue; |
35 border-left: blue solid 1em; | 38 border-left: blue solid 1em; |
36 border-right: blue solid 1em; | 39 border-right: blue solid 1em; |
37 } | 40 } |
38 | 41 |
39 div#top-border { border-top: blue solid 1em; } | 42 div#top-border |
| 43 { |
| 44 border-top: blue solid 1em; |
| 45 } |
40 | 46 |
41 div#bottom-border { border-bottom: blue solid 1em; } | 47 div#bottom-border |
| 48 { |
| 49 border-bottom: blue solid 1em; |
| 50 } |
42 ]]></style> | 51 ]]></style> |
43 </head> | 52 </head> |
44 | 53 |
45 <body> | 54 <body> |
46 | 55 |
47 <!-- topmost line --><div id="top-border">AAAA BBBB CCCC DDDD</div> | 56 <!-- topmost line --><div id="top-border">AAAA BBBB CCCC DDDD</div> |
48 | 57 |
49 <!-- 2nd topmost line --><div>E F G H J L 
; </div> | 58 <!-- 2nd topmost line --><div>E F G H J L 
; </div> |
50 | 59 |
51 <!-- 3rd topmost line --><div>M N Q R S T 
; </div> | 60 <!-- 3rd topmost line --><div>M N Q R S T 
; </div> |
52 | 61 |
53 <!-- 4th topmost line --><div>UUUU VVVV WWWW XXXX</div> | 62 <!-- 4th topmost line --><div>UUUU VVVV WWWW XXXX</div> |
54 | 63 |
55 <!-- 5th topmost line --><div>Z a b  
; c d</div> | 64 <!-- 5th topmost line --><div>Z a b  
; c d</div> |
56 | 65 |
57 <!-- 6th topmost line --><div>e f g  
; h j</div> | 66 <!-- 6th topmost line --><div>e f g  
; h j</div> |
58 | 67 |
59 <!-- 7th topmost line --><div id="bottom-border">k m
n qqqq rrrr</div> | 68 <!-- 7th topmost line --><div id="bottom-border">k m
n qqqq rrrr</div> |
60 | 69 |
61 </body> | 70 </body> |
62 </html> | 71 </html> |
OLD | NEW |