tor-browser

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

font-variant-04.html (1447B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      4 <title>CSS Test:  font-variant: none; low level equivalence</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-variant-prop">
      7 <link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop">
      8 <link rel="match" href="font-variant-04-ref.html">
      9 <meta name="assert" content="The ‘none’ value sets ‘font-variant-ligatures’ to ‘none’ and resets all other font feature properties to their initial value. It does not reset the values of either ‘font-language-override’ or ‘font-feature-settings’">
     10 <style>
     11  @font-face {
     12    font-family: fwf;
     13    src: url(support/fonts/FontWithFancyFeatures.otf);
     14  }
     15  .test {
     16   font-family: fwf;
     17   font-size: 2.4em;
     18   line-height: 1.1;
     19    color: purple;
     20  }
     21  .inner {
     22   font-variant: none;
     23  }
     24  .outer {
     25    font-feature-settings: "liga" on, "clig" on, "calt" on, "hlig" on, "dlig" on, "onum" on, "smcp" on, "jp90" on;
     26  }
     27  .child {
     28    color: green;
     29  }
     30 </style>
     31 
     32 <body>
     33 <p>Test passes if the two lines below are identical, with (in purple) eight check marks (✓),
     34 and then (in green) eight check marks (✓). </p>
     35 <section class="test">
     36 <p class="outer">CDGFEJQa<span class="inner child">CDGFEJQa</span></p>
     37 <p class="ref">AAAAAAAA<span class="child">AAAAAAAA</span></p>
     38 </section>