tor-browser

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

font-variant-alternates-03.html (1619B)


      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-alternates: stylistic(); low level equivalence</title>
      5 <link rel="author" title="Chris Lilley" href="chris@w3.org">
      6 <link rel="match" href="font-variant-alternates-03-ref.html">
      7 <link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-variant-alternates-prop">
      8 <link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-feature-settings-prop">
      9 <link rel="help" href="https://drafts.csswg.org/css-fonts/#font-feature-values">
     10 <meta name="assert" content="Enables display of stylistic alternates (font specific, OpenType feature: salt &lt;feature-index&gt;)">
     11 <style>
     12  @font-face {
     13    font-family: fwf;
     14    src: url(support/fonts/FontWithFancyFeatures.otf);
     15  }
     16  @font-feature-values fwf {
     17    @stylistic {
     18      foo: 1;
     19      bar: 2;
     20      baz: 3;
     21    }
     22  }
     23  .test {
     24   font-family: fwf;
     25   font-size: 2em;
     26   line-height: 1.1;
     27   font-variant-alternates: character-variant(doesnt-exist) styleset(doesnt-exist);
     28  }
     29  .high {
     30  font-variant-alternates: stylistic(foo);
     31  }
     32  .low {
     33   font-feature-settings: "hist" off, "salt" 01, "ss01" off, "ss02" off, "ss03" off,
     34    "cv01" off, "cv02" off, "cv03" off,  "swsh" 00, "cswh" 00, "ornm" 00, "nalt" 00;
     35  }
     36 </style>
     37 <body>
     38 
     39 <p>Test passes if the three lines below are identical, with one cross (✗), one check mark (✓) followed by eighteen crosses (✗). </p>
     40 <section class="test">
     41  <p class="high">Xnophijklmqrstuvwxyz</p>
     42  <p class="low">Xnophijklmqrstuvwxyz</p>
     43  <p class="ref">BABBBBBBBBBBBBBBBBBB</p>
     44 </section>