Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>CSS Test: font-variation-settings descriptor</title>
<style>
  @font-face {
    font-family: "Roboto";
    src: url('support/fonts/RobotoExtremo-VF.subset.ttf') format('truetype');
  }
  .weight100 {
     font-family: "Roboto";
     font-variation-settings: 'wdth' 125, 'opsz' 144, 'wght' 100;
  }
  .weight400 {
     font-family: "Roboto";
     font-variation-settings: 'wdth' 125, 'opsz' 144, 'wght' 400;
  }
  .weight900 {
     font-family: "Roboto";
     font-variation-settings: 'wdth' 125, 'opsz' 144, 'wght' 900;
  }
</style>
<body>
<p>Test passes if the text below maintains the same optical size and width, while weight varies.</p>
<p class="weight100">Filler Text</p>
<p class="weight400">Filler Text</p>
<p class="weight900">Filler Text</p>
</body>
</html>