tor-browser

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

font-variation-settings-descriptor-01.html (849B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      4 <title>CSS Test: font-variation-settings descriptor</title>
      5 <link rel="author" title="Sejal Anand" href="mailto:sejalanand@microsoft.com">
      6 <link rel="help" href="https://drafts.csswg.org/css-fonts-4/#font-rend-desc">
      7 <link rel="match" href="font-variation-settings-descriptor-01-ref.html">
      8 <meta name="assert" content="slant feature should be handled with font-variation-settings defined as font-face rule.">
      9 <style>
     10  @font-face {
     11    font-family: "slant";
     12    src: url(variations/resources/Inter.var.subset.ttf);
     13    font-variation-settings: 'slnt' -20;
     14  }
     15  .slantOn {
     16    font-family: slant;
     17  }
     18 </style>
     19 <body>
     20 <p>Test passes if the line below has slanted text.</p>
     21 <div class="slantOn">
     22  <span>filler text</span>
     23 </div>
     24 </body>
     25 </html>