| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/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 dir
ection of block-level boxes</title> |
| 8 |
| 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" /> |
| 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' s
et to 'vertical-rl' |
| 15 establishes a block formating context with a right-to-left block flow direction
." name="assert" /> |
| 16 |
| 17 <style type="text/css"><![CDATA[ |
| 18 body |
| 19 { |
| 20 color: yellow; |
| 21 font: 1.25em/1 Ahem; |
| 22 } |
| 23 |
| 24 div.inline-block |
| 25 { |
| 26 background-color: blue; |
| 27 border-right: 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 -webkit-writing-mode: vertical-rl; |
| 39 } |
| 40 |
| 41 span { display: block; } |
| 42 |
| 43 span#left-border { border-left: blue solid 1em; } |
| 44 ]]></style> |
| 45 </head> |
| 46 |
| 47 <body> |
| 48 |
| 49 <div> |
| 50 |
| 51 <div class="inline-block"> |
| 52 |
| 53 <!-- The right-most line of "P" --> <span>eeee </span> |
| 54 |
| 55 <!-- The 2nd right-most line of "P" --> <span>f g </span> |
| 56 |
| 57 <!-- The 3rd right-most line of "P" --> <span>h j </span> |
| 58 |
| 59 <!-- The 4th right-most line of "P" --> <span id="left-border">kkkkkkk</span> |
| 60 |
| 61 </div><div class="inline-block"> |
| 62 |
| 63 <!-- The right-most line of "A" --> <span>YYYYYYY</span> |
| 64 |
| 65 <!-- The 2nd right-most line of "A" --> <span>Z a </span> |
| 66 |
| 67 <!-- The 3rd right-most line of "A" --> <span>b c </span> |
| 68 |
| 69 <!-- The 4th right-most line of "A" --> <span>ddddddd</span> |
| 70 |
| 71 </div><div class="inline-block"> |
| 72 |
| 73 <!-- The right-most line of left-most "S" --> <span>L MMMM</span> |
| 74 |
| 75 <!-- The 2nd right-most line of left-most "S" --> <span>Q R S</spa
n> |
| 76 |
| 77 <!-- The 3rd right-most line of left-most "S" --> <span>T U V</spa
n> |
| 78 |
| 79 <!-- The 4th right-most line of left-most "S" --> <span>WWWW X</span> |
| 80 |
| 81 </div><div class="inline-block"> |
| 82 |
| 83 <!-- The right-most line of right-most "S" --> <span>A BBBB</span> |
| 84 |
| 85 <!-- The 2nd right-most line of right-most "S" --> <span>C D E</sp
an> |
| 86 |
| 87 <!-- The 3rd right-most line of right-most "S" --> <span>F G H</sp
an> |
| 88 |
| 89 <!-- The 4th right-most line of right-most "S" --> <span>JJJJ K</span> |
| 90 |
| 91 </div> |
| 92 |
| 93 </div> |
| 94 |
| 95 </body> |
| 96 </html> |
| OLD | NEW |