tor-browser

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

writing-mode-vlr-014-manual.html (1604B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <head>
      4 <meta charset="utf-8"/>
      5 <title>writing mode:vertical-lr, 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-lr will arrange Arabic text across a line break such that the first word in memory is on the left side of the line break."/>
      9 <style type="text/css">
     10 @font-face {
     11    font-family: 'webfont';
     12    src: 	url('/fonts/noto/NotoSansMongolian-regular.woff2') format('woff2');
     13    font-weight: normal;
     14    font-style: normal;
     15 }
     16 .test { font-family: webfont, serif; font-size: 24px; float: left; margin-right: 30px; height: 150px;  color: #ccc; }
     17 span[lang=ar] { color: black; }
     18 </style>
     19 <!-- this is the test -->
     20 <style type="text/css">
     21 .test { writing-mode: vertical-lr; }
     22 </style>
     23 <script>
     24 function setMargin (height) {
     25 document.getElementById('test').style.height = height+'px'
     26 }
     27 </script>
     28 </head>
     29 <body>
     30 <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>
     31 <p class="instructions">Use this control to set the line length, if necessary: <input type="text" value="150" style="width: 30px; text-align:right;" onChange="setMargin(this.value);"/>px</p>
     32 <div id="test" class="test" lang="mn">ᠮᠤᠩᠭᠤᠯ <span lang="ar">نشاط التدويل</span> ᠤᠯᠤᠰ</div>
     33 <div class="ref"><img src="support/mn_ar_wrap.png" alt="ref image"/></div>
     34 </body>
     35 </html>