writing-mode-vertical-rl-003.htm (1796B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Writing Modes Test: writing-mode: horizontal-tb nested in vertical-rl</title> 5 <link rel="author" title="KISAKA Toshihiro" href="mailto:toshihiro@kisaka.jp"> 6 <!-- You must have at least one spec link, but may have as many as are covered in the test. --> 7 <!-- Be sure to make the main testing area first in the order --> 8 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow"> 9 <!-- The match link is only required if this is a reftest --> 10 <link rel="match" href="writing-mode-vertical-rl-003-ref.htm"> 11 <meta name="flags" content="ahem"> 12 <meta name="assert" content="when child block has its own writing-mode, child block's writing-mode overwrites parent block's writing-mode."> 13 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 14 <style type="text/css"> 15 div { 16 writing-mode: vertical-rl; 17 } 18 19 div p { 20 background: yellow; 21 color: blue; 22 font: 20px/1 Ahem; 23 height: 6em; 24 margin: 10px; 25 white-space: pre; 26 width: 6em; 27 } 28 29 div p:nth-child(2) { 30 background: pink; 31 } 32 33 p#test { 34 writing-mode: horizontal-tb; 35 } 36 </style> 37 </head> 38 <body> 39 <p>Upper three blocks are identical to the lower three blocks including each character positions.</p> 40 41 <div> 42 <p>ab cd 43 e fg h 44 i jkl 45 mn 46 o q rs 47 t uv</p> 48 <p id="test">ab cd 49 e fg h 50 i jkl 51 mn 52 o q rs 53 t uv</p> 54 <p>ab cd 55 e fg h 56 i jkl 57 mn 58 o q rs 59 t uv</p> 60 </div> 61 62 <div> 63 <p>ab cd 64 e fg h 65 i jkl 66 mn 67 o q rs 68 t uv</p> 69 <p> h s 70 d l r 71 cgk v 72 fj qu 73 b n 74 aeimot</p> 75 <p>ab cd 76 e fg h 77 i jkl 78 mn 79 o q rs 80 t uv</p> 81 </div> 82 </body> 83 </html>