tor-browser

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

letter-spacing-ligatures-003.html (1013B)


      1 <!DOCTYPE html>
      2 <html  lang="en" >
      3 <meta charset="utf-8">
      4 <title>text-justify:inter-character and ligatures</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/#letter-spacing-property'>
      7 <link rel='match' href='reference/letter-spacing-ligatures-003-ref.html'>
      8 <meta name=flags content="should">
      9 <meta name="assert" content="When the effective spacing between two characters is not zero (due to either justification […]), user agents should not apply optional ligatures, but they do need to apply mandatory ones.">
     10 <style>
     11 div {
     12    font-size: 2em;
     13    width: 12ch;
     14 }
     15 .test {
     16    text-align: justify;
     17    text-align-last: justify;
     18    text-justify: inter-character;
     19 }
     20 span { float: right; }
     21 .ref { color: blue; }
     22 </style>
     23 <p>Test passes if the black text looks like the blue one.
     24 <div lang=km class=test>&#x179F;&#x17B6;&#x17A0;&#x17B6;</div>
     25 <div lang=km class=ref>&#x179F;&#x17B6;<span>&#x17A0;&#x17B6;</span></div>