tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

writing-mode-vrl-014-manual.html (1418B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <head>
      4 <meta charset="utf-8"/>
      5 <title>writing mode:vertical-rl, Arabic 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 arrange Arabic text across a line break such that the first word in memory is on the right-hand side of the line break."/>
      9 <style type="text/css">
     10 .test, .ref { font-size: 24px; float: left; margin-right: 30px; height: 200px; color: #ccc; }
     11 span[lang=ar] { 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 Arabic words are displayed in the same relative positions around the 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="ar">نشاط التدويل</span>万维网联盟</div>
     27 <div class="ref"><img src="support/zh_ar_wrap.png" alt="ref image"/></div>
     28 </body>
     29 </html>