tor-browser

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

variable-opsz-size-adjust.html (1454B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <link rel="author" title="Dominik Röttsches" href="drott@chromium.org">
      4 <link rel="help" href="https://drafts.csswg.org/css-fonts-4/#font-optical-sizing-def"/>
      5 <link rel="help" href="https://drafts.csswg.org/css-fonts-5/#size-adjust-desc"/>
      6 <meta name="assert" content="Ensures that optical size is adjusted with size-adjust to displayed font size."/>
      7 <link rel="match" href="variable-opsz-size-adjust-ref.html">
      8 <meta charset="utf-8">
      9 <style>
     10    @font-face {
     11    font-family: variabletest_box;
     12    src: url(resources/variabletest_box.ttf);
     13    size-adjust: 150%;
     14    }
     15 
     16    body {
     17    font-family: variabletest_box, sans-serif;
     18    }
     19 
     20    div {
     21    line-height: 64px;
     22    }
     23 </style>
     24 <!-- The variabletest_box font file contains a glyph for letter B which moves a
     25  horizontal bar up from the middle for opsz > 12 and moves it down for opsz <
     26  12 where the opsz axis ranges from 6 to 128. -->
     27 <div style="font-size:   6px;">B</div>
     28 <div style="font-size:  12px;">B</div>
     29 <div style="font-size:  24px;">B</div>
     30 <div style="font-size:  48px;">B</div>
     31 <div style="font-size:  64px;">B</div>
     32 <!-- Explicit value overrides auto. -->
     33 <div style="font-size:  24px; font-variation-settings: 'opsz' 128;">B</div>
     34 <div style="font-size:  48px; font-optical-sizing: none;">B</div>
     35 <script>
     36    document.fonts.ready.then(
     37        () => { document.documentElement.classList.remove("reftest-wait"); });
     38 </script>
     39 </html>