tor-browser

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

mongolian-orientation-002.html (1322B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Writing Modes Test: orientation of mongolian</title>
      4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
      5 <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#text-orientation">
      6 <link rel="match" href="reference/mongolian-orientation-001-ref.html">
      7 <meta name="assert" content="In Mongolian, in horizontal text, glyphs are typeset in a 90° counter-clockwise rotation from their intrinsic vertical orientation. text-orientation:sideways causes all text to be typeset sideways, as if in a horizontal layout, but rotated 90° clockwise. text-orientation:mixed causes typographic character units from vertical scripts are typeset with their intrinsic orientation. These two should therefore result in the same thing">
      8 <style>
      9 div {
     10  font-family: "Mongolian White"; /* Not required for the test to work,
     11 but it helps make it look not ugly if you have the font installed.*/
     12  font-size: 2em;
     13  margin: 1em;
     14  writing-mode: vertical-lr;
     15  float: left;
     16 }
     17 div:nth-of-type(1) { text-orientation: mixed; }
     18 div:nth-of-type(2) { text-orientation: sideways; }
     19 </style>
     20 
     21 <p>The test passes if you see two identical lines of vertical text (in Mongolian).
     22 
     23 <div>ᠮᠣᠨᠭᠭᠣᠯ ᠬᠡᠯᠡ</div>
     24 <div>ᠮᠣᠨᠭᠭᠣᠯ ᠬᠡᠯᠡ</div>