tor-browser

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

lang-attribute-affects-rendering-of-second-text-run.html (679B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <link rel="help" href="https://html.spec.whatwg.org/#attr-lang">
      6  <link rel="mismatch" href="lang-attribute-affects-rendering-of-second-text-run-ref.html">
      7  <style>
      8    * { font-size: 50px }
      9 
     10    @font-face {
     11      font-family: test-font-family;
     12      /* <Lato-Medium.ttf> provides different ligatures for English and
     13         Turkish. */
     14      src: url(/fonts/Lato-Medium.ttf);
     15    }
     16 
     17    div { font-family: test-font-family; }
     18  </style>
     19 </head>
     20 <body>
     21  `lang="en"` should render ligatures, `lang="tr"` not.
     22  Different scripts should correspond to different text runs.
     23  <div lang="en">αβ fi</div>
     24 </body>
     25 </html>