tor-browser

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

font-feature-settings-descriptor-01.html (1414B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      4 <title>CSS Test: font-feature-settings descriptor</title>
      5 <link rel="author" title="Chris Lilley" href="chris@w3.org">
      6 <link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-rend-desc">
      7 <link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop">
      8 <link rel="match" href="font-feature-settings-descriptor-01-ref.html">
      9 <meta name="assert" content="These descriptors define initial settings that apply when the font defined by an @font-face rule is rendered">
     10 <style>
     11  @font-face {
     12    font-family: fwf;
     13    src: url(support/fonts/FontWithFancyFeatures.otf);
     14  }
     15  @font-face {
     16    font-family: fwf2;
     17    src: url(support/fonts/FontWithFancyFeatures.otf);
     18    font-feature-settings: "liga" on, "clig" on, "calt" on, "hlig" on, "dlig" on, "onum" on, "smcp" on, "jp90" on;
     19  }
     20  .test {
     21   font-family: fwf;
     22   font-size: 2.4em;
     23   line-height: 1.1;
     24  }
     25  .test>p.descriptor {
     26      font-family: fwf2;
     27  }
     28  .property {
     29    font-feature-settings: "liga" on, "clig" on, "calt" on, "hlig" on, "dlig" on, "onum" on, "smcp" on, "jp90" on;
     30  }
     31 </style>
     32 
     33 <body>
     34 <p>Test passes if the three lines below are identical, with eight check marks (✓). </p>
     35 <section class="test">
     36    <p class="descriptor">CDGFEJQa</p>
     37 <p class="property">CDGFEJQa</p>
     38 <p class="ref">AAAAAAAA</p>
     39 </section>