block-flow-direction-vrl-011.xht (2936B)
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-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-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 an inline-block with its 'writing-mode' set to 'vertical-rl' establishes a block formating context with a right-to-left block flow direction." 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-top: blue solid 1em; 28 display: inline-block; 29 height: 8em; 30 vertical-align: top; 31 /* 32 Why 'vertical-align: top' ? 33 See 34 http://lists.w3.org/Archives/Public/public-css-testsuite/2014Dec/0013.html 35 for explanations 36 */ 37 writing-mode: vertical-rl; 38 } 39 40 span 41 { 42 display: block; 43 } 44 45 span.right-border 46 { 47 border-right: blue solid 1em; 48 } 49 50 span#left-border 51 { 52 border-left: blue solid 1em; 53 } 54 ]]></style> 55 </head> 56 57 <body> 58 59 <div> 60 61 <div id="inline-block"> 62 63 <!-- The right-most line of right-most "S" --> <span class="right-border">A BBBB</span> 64 65 <!-- The 2nd right-most line of right-most "S" --> <span>C D E</span> 66 67 <!-- The 3rd right-most line of right-most "S" --> <span>F G H</span> 68 69 <!-- The 4th right-most line of right-most "S" --> <span>JJJJ K</span> 70 71 72 73 <!-- The right-most line of left-most "S" --> <span class="right-border">L MMMM</span> 74 75 <!-- The 2nd right-most line of left-most "S" --> <span>Q R S</span> 76 77 <!-- The 3rd right-most line of left-most "S" --> <span>T U V</span> 78 79 <!-- The 4th right-most line of left-most "S" --> <span>WWWW X</span> 80 81 82 83 <!-- The right-most line of "A" --> <span class="right-border">YYYYYYY</span> 84 85 <!-- The 2nd right-most line of "A" --> <span>Z a </span> 86 87 <!-- The 3rd right-most line of "A" --> <span>b c </span> 88 89 <!-- The 4th right-most line of "A" --> <span>ddddddd</span> 90 91 92 93 <!-- The right-most line of "P" --> <span class="right-border">eeee </span> 94 95 <!-- The 2nd right-most line of "P" --> <span>f g </span> 96 97 <!-- The 3rd right-most line of "P" --> <span>h j </span> 98 99 <!-- The 4th right-most line of "P" --> <span id="left-border">kkkkkkk</span> 100 101 </div> 102 103 </div> 104 105 </body> 106 </html>