tor-browser

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

font-slant-3.html (1052B)


      1 <!DOCTYPE html>
      2 <meta charset=utf-8>
      3 <title>CSS test: mapping of font-style:oblique to opentype 'slnt' axis</title>
      4 <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com"/>
      5 <link rel="help" href="https://drafts.csswg.org/css-fonts/#valdef-font-style-oblique-angle"/>
      6 <link rel="match" href="font-slant-3-ref.html"/>
      7 <style>
      8 @font-face {
      9  font-family: test;
     10  /* The font resource includes a 'slnt' axis, but our font-style descriptor
     11     should prevent it being used to render oblique/italic styles. */
     12  src: url(resources/Inter.var.subset.ttf);
     13  font-style: normal;
     14  font-weight: normal;
     15  font-stretch: normal;
     16 }
     17 .test {
     18  font-synthesis: style;
     19  font: 32px/1.5 test;
     20 }
     21 </style>
     22 <body>
     23 <p>Test passes if the following lines are displayed with a variety of synthetic slants.</p>
     24 <div class="test" style="font-style: oblique 10deg">slant</div>
     25 <div class="test" style="font-style: oblique 20deg">slant</div>
     26 <div class="test" style="font-style: oblique -10deg">slant</div>
     27 <div class="test" style="font-style: italic">slant</div>