tor-browser

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

font-face-local-not-family.html (1003B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>@font-face src:local() test</title>
      4 <meta name="assert" content="src:local() loads an individual face, not an entire font family">
      5 <link rel="help" href="https://drafts.csswg.org/css-fonts-4/#local-font-fallback">
      6 <link rel="match" href="font-face-local-not-family-ref.html">
      7 
      8 <style>
      9 @font-face {
     10  /* Load the regular face of Arial, or if not present, harmlessly fall back to Ahem
     11     (but the test will then be pointless). */
     12  font-family: "LocalArial";
     13  src: local("Arial"),
     14       local("ArialMT"),
     15       local(Ahem),
     16       url(/fonts/Ahem.ttf);
     17 }
     18 </style>
     19 
     20 <p style="font: 24px LocalArial">These two lines should look the same</p>
     21 
     22 <!-- Because we only defined a single face in the LocalArial family, and disabled any synthesis,
     23     the 'bold' here must have no effect; in particular, it does NOT access any installed
     24     Arial-Bold face. -->
     25 <p style="font: bold 24px LocalArial; font-synthesis: none">These two lines should look the same</p>