block-flow-direction-slr-043.xht (3064B)
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-lr - 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-043-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-lr' are laid out one after the other with the first beginning at the left-hand side of its containing block; they are ordered from left to right meaning that the 1st block box is the leftmost one and, then the 2nd block is juxtaposed at the right-hand side of 1st block, then the 3rd block is juxtaposed at the 2nd block on its right-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-lr; 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.left-border 44 { 45 border-left: blue solid 1em; 46 } 47 48 div#right-border 49 { 50 border-right: blue solid 1em; 51 } 52 ]]></style> 53 </head> 54 55 <body> 56 57 <!-- The 1st left-most line of "P" --> <div class="left-border">AAAAAAA</div> 58 59 <!-- The 2nd left-most line of "P" --> <div> B C</div> 60 61 <!-- The 3rd left-most line of "P" --> <div> D E</div> 62 63 <!-- The 4th left-most line of "P" --> <div> FFFF</div> 64 65 66 67 <!-- The left-most line of "A" --> <div class="left-border">GGGGGGG</div> 68 69 <!-- The 2nd left-most line of "A" --> <div> H J</div> 70 71 <!-- The 3rd left-most line of "A" --> <div> K L</div> 72 73 <!-- The 4th left-most line of "A" --> <div>MMMMMMM</div> 74 75 76 77 <!-- The 1st left-most line of left-most "S" --> <div class="left-border">N QQQQ</div> 78 79 <!-- The 2nd left-most line of left-most "S" --> <div>R S T</div> 80 81 <!-- The 3rd left-most line of left-most "S" --> <div>U V W</div> 82 83 <!-- The 4th left-most line of left-most "S" --> <div>XXXX Y</div> 84 85 86 87 <!-- The left-most line of right-most "S" --> <div class="left-border">a bbbb</div> 88 89 <!-- The 2nd left-most line of right-most "S" --> <div>c d e</div> 90 91 <!-- The 3rd left-most line of right-most "S" --> <div>f g h</div> 92 93 <!-- The 4th left-most line of right-most "S" --> <div id="right-border">jjjj k</div> 94 95 </body> 96 </html>