tor-browser

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

font-synthesis-weight-first-letter.html (1000B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <meta charset="utf-8"/>
      4 <title>CSS Test: font-synthesis-weight apply to ::first-letter</title>
      5 <link rel="match" href="font-synthesis-weight-first-letter-ref.html">
      6 <link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-synthesis-weight">
      7 <meta name="assert" content="If ‘weight’ is not specified, user agents must not synthesize bold faces">
      8 <style>
      9    @font-face {
     10        font-family: "Lato-Medium";
     11        src: url(/fonts/Lato-Medium.ttf);
     12    }
     13    @supports not (font-synthesis-weight: none) {
     14        .test {color: red;}
     15    }
     16    .test {
     17        font-family: "Lato-Medium";
     18        font-size: 3em;
     19        font-kerning: none;
     20    }
     21    p.nosynth::first-letter {
     22        font-weight: bold;
     23        font-synthesis-weight: none;
     24    }
     25 </style>
     26 
     27 <p>Test passes if the two lines below are identical (the second line is <em>not bold</em>), and there is no red.</p>
     28 <section class="test">
     29    <p>Filler</p>
     30    <p class="nosynth">Filler</p>
     31 </section>