block-flow-direction-srl-042.xht (3058B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Writing Modes Test: sideways-rl - block flow direction of block-level boxes</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" /> 11 <link rel="match" href="block-flow-direction-002-ref.xht" /> 12 13 <meta content="ahem" name="flags" /> 14 <meta content="This test checks that block-level boxes in a block formating context with 'writing-mode' set to 'sideways-rl' are laid out one after the other with the first beginning at the right-hand side of its containing block; they are ordered from right to left meaning that the 1st block box is the rightmost one, then the 2nd block is juxtaposed at its left-hand side, then the 3rd block is juxtaposed at the 2nd block on its left-hand side, etc... " name="assert" /> 15 16 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 17 <style type="text/css"><![CDATA[ 18 html 19 { 20 writing-mode: sideways-rl; 21 } 22 /* 23 " 24 The principal writing mode of the document is determined by the writing-mode 25 and direction values specified on the root element. 26 " 27 */ 28 29 body 30 { 31 color: yellow; 32 font: 20px/1 Ahem; 33 height: 9em; 34 } 35 36 div 37 { 38 background-color: blue; 39 border-bottom: blue solid 1em; 40 border-top: blue solid 1em; 41 } 42 43 div.right-border 44 { 45 border-right: blue solid 1em; 46 } 47 48 div#left-border 49 { 50 border-left: blue solid 1em; 51 } 52 ]]></style> 53 </head> 54 55 <body> 56 57 <!-- The right-most line of right-most "S" --> <div class="right-border">A BBBB</div> 58 59 <!-- The 2nd right-most line of right-most "S" --> <div>C D E</div> 60 61 <!-- The 3rd right-most line of right-most "S" --> <div>F G H</div> 62 63 <!-- The 4th right-most line of right-most "S" --> <div>JJJJ K</div> 64 65 66 67 <!-- The right-most line of left-most "S" --> <div class="right-border">L MMMM</div> 68 69 <!-- The 2nd right-most line of left-most "S" --> <div>Q R S</div> 70 71 <!-- The 3rd right-most line of left-most "S" --> <div>T U V</div> 72 73 <!-- The 4th right-most line of left-most "S" --> <div>WWWW X</div> 74 75 76 77 <!-- The right-most line of "A" --> <div class="right-border">YYYYYYY</div> 78 79 <!-- The 2nd right-most line of "A" --> <div>Z a </div> 80 81 <!-- The 3rd right-most line of "A" --> <div>b c </div> 82 83 <!-- The 4th right-most line of "A" --> <div>ddddddd</div> 84 85 86 87 <!-- The right-most line of "P" --> <div class="right-border">eeee </div> 88 89 <!-- The 2nd right-most line of "P" --> <div>f g </div> 90 91 <!-- The 3rd right-most line of "P" --> <div>h j </div> 92 93 <!-- The 4th right-most line of "P" --> <div id="left-border">kkkkkkk</div> 94 95 </body> 96 </html>