line-box-direction-vlr-014.xht (2901B)
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: inline-block and 'vertical-lr' - ordering direction of line 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-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" /> 11 <link rel="match" href="block-flow-direction-001-ref.xht" /> 12 13 <meta content="ahem" name="flags" /> 14 <meta content="This test checks that lines boxes of descendant block boxes of inline-blocks with 'writing-mode' set to 'vertical-lr' are ordered from left to right." name="assert" /> 15 16 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 17 <style type="text/css"><![CDATA[ 18 body 19 { 20 color: yellow; 21 font: 20px/1 Ahem; 22 } 23 24 div.inline-block 25 { 26 background-color: blue; 27 border-left: blue solid 1em; 28 border-top: blue solid 1em; 29 display: inline-block; 30 height: 8em; 31 vertical-align: top; 32 /* 33 Why 'vertical-align: top' ? 34 See 35 http://lists.w3.org/Archives/Public/public-css-testsuite/2014Dec/0013.html 36 for explanations 37 */ 38 writing-mode: vertical-lr; 39 } 40 41 span 42 { 43 display: block; 44 } 45 46 span#right-border 47 { 48 border-right: blue solid 1em; 49 } 50 ]]></style> 51 </head> 52 53 <body> 54 55 <div> 56 57 <div class="inline-block"> 58 59 <!-- The 1st left-most line of "P" --> <span>AAAAAAA</span> 60 61 <!-- The 2nd left-most line of "P" --> <span>B C </span> 62 63 <!-- The 3rd left-most line of "P" --> <span>D E </span> 64 65 <!-- The 4th left-most line of "P" --> <span>FFFF </span> 66 67 </div><div class="inline-block"> 68 69 <!-- The left-most line of "A" --> <span>GGGGGGG</span> 70 71 <!-- The 2nd left-most line of "A" --> <span>H J </span> 72 73 <!-- The 3rd left-most line of "A" --> <span>K L </span> 74 75 <!-- The 4th left-most line of "A" --> <span>MMMMMMM</span> 76 77 </div><div class="inline-block"> 78 79 <!-- The 1st left-most line of left-most "S" --> <span>NNNN Q</span> 80 81 <!-- The 2nd left-most line of left-most "S" --> <span>R S T</span> 82 83 <!-- The 3rd left-most line of left-most "S" --> <span>U V W</span> 84 85 <!-- The 4th left-most line of left-most "S" --> <span>X YYYY</span> 86 87 </div><div class="inline-block"> 88 89 <!-- The left-most line of right-most "S" --> <span>aaaa b</span> 90 91 <!-- The 2nd left-most line of right-most "S" --> <span>c d e</span> 92 93 <!-- The 3rd left-most line of right-most "S" --> <span>f g h</span> 94 95 <!-- The 4th left-most line of right-most "S" --> <span id="right-border">j kkkk</span> 96 97 </div> 98 99 </div> 100 101 </body> 102 </html>