tor-browser

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

writing-system-line-break-001.html (1091B)


      1 <!doctype html>
      2 <html lang=en>
      3 <meta charset=utf-8>
      4 <title>CSS test: writing system and line breaking</title>
      5 <link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
      6 <link rel=help href="https://drafts.csswg.org/css-text-3/#languages">
      7 <link rel=help href="https://drafts.csswg.org/css-text-3/#script-tagging">
      8 <link rel=help href="https://drafts.csswg.org/css-text-3/#propdef-line-break">
      9 <link rel=match href="reference/writing-system-line-break-001-ref.html">
     10 <meta name=assert content="breaks before U+301C when line-break is loose are allowed if the content language is Japanese,
     11 but not when the writing system is not Japanese/Chinese (e.g. Korean).">
     12 <style>
     13 div {
     14  font-family: monospace;
     15  width: 2em;
     16  line-break: loose;
     17 }
     18 [lang=ja] { border: solid blue; }
     19 [lang=ja-Hang] { border: solid orange; }
     20 </style>
     21 
     22 <p>The test passes if the second line in the blue box below <em>starts with</em> a “〜”,
     23 and if the second line in the orange box below <em>ends with</em> a “〜”.
     24 
     25 <div lang=ja>東京〜大阪</div>
     26 <div lang=ja-Hang>도쿄〜오사카</div>