tor-browser

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

font-face-unicode-range-nbsp.html (974B)


      1 <!DOCTYPE html>
      2 <meta charset=utf-8>
      3 <title>CSS Fonts testcase: using unicode-range to target non-breaking space</title>
      4 <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
      5 <link rel="match" href="font-face-unicode-range-nbsp-ref.html">
      6 <link rel="help" href="https://www.w3.org/TR/css-fonts-4/#unicode-range-desc">
      7 <meta name="assert" content="Check that using unicode-range for non-breaking space works">
      8 <style>
      9 @font-face {
     10  font-family: test;
     11  src: url(/fonts/Ahem.ttf);
     12  unicode-range: U+00A0;
     13  /* override metrics to ensure they match across the fonts: */
     14  ascent-override: 80%;
     15  descent-override: 20%;
     16 }
     17 @font-face {
     18  font-family: fallback;
     19  src: url(/fonts/GentiumPlus-R.woff);
     20  ascent-override: 80%;
     21  descent-override: 20%;
     22 }
     23 #test, #ref {
     24  font: 24px/2 test, fallback, serif;
     25 }
     26 </style>
     27 <p>The first line should have much wider word spacing:</p>
     28 <div id=test>
     29 This&nbsp;is&nbsp;a&nbsp;test
     30 </div>
     31 <div id=ref>
     32 This is a test
     33 </div>