tor-browser

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

font-variation-settings-descriptor-03-ref.html (877B)


      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 <style>
      6  @font-face {
      7    font-family: "Roboto";
      8    src: url('support/fonts/RobotoExtremo-VF.subset.ttf') format('truetype');
      9  }
     10  .weight100 {
     11     font-family: "Roboto";
     12     font-variation-settings: 'wdth' 125, 'opsz' 144, 'wght' 100;
     13  }
     14  .weight400 {
     15     font-family: "Roboto";
     16     font-variation-settings: 'wdth' 125, 'opsz' 144, 'wght' 400;
     17  }
     18  .weight900 {
     19     font-family: "Roboto";
     20     font-variation-settings: 'wdth' 125, 'opsz' 144, 'wght' 900;
     21  }
     22 </style>
     23 <body>
     24 <p>Test passes if the text below maintains the same optical size and width, while weight varies.</p>
     25 <p class="weight100">Filler Text</p>
     26 <p class="weight400">Filler Text</p>
     27 <p class="weight900">Filler Text</p>
     28 </body>
     29 </html>