writing-mode-vrl-012-manual.html (1379B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"/> 5 <title>writing mode:vertical-rl, Latin wrapping</title> 6 <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org"/> 7 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#block-flow"/> 8 <meta name="assert" content="By default, writing-mode:vertical-rl will wrap Latin text across a line break such that the first word in memory is on the right."/> 9 <style type="text/css"> 10 .test, .ref { font-size: 24px; float: left; margin-right: 30px; height: 200px; color: #ccc; } 11 span[lang=en] { color: black; } 12 </style> 13 <!-- this is the test --> 14 <style type="text/css"> 15 .test { writing-mode: vertical-rl; } 16 </style> 17 <script> 18 function setMargin (height) { 19 document.getElementById('test').style.height = height+'px' 20 } 21 </script> 22 </head> 23 <body> 24 <p class="instructions">Test passes if the two Latin words on the left are displayed in the same relative positions around a line break as on the blue background.</p> 25 <p class="instructions">Use this control to set the line length, if necessary: <input type="text" value="200" style="width: 30px; text-align:right;" onChange="setMargin(this.value);"/>px</p> 26 <div id="test" class="test" lang="zh-hans">国际化活动<span lang="en">W3C i18n</span>万维网联盟</div> 27 <div class="ref"><img src="support/zh_en_wrap.png" alt="ref image"/></div> 28 </body> 29 </html>