tor-browser

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

font-variant-emoji-005.html (1283B)


      1 <!DOCTYPE html>
      2 <meta charset="UTF-8" />
      3 <title>CSS Fonts: font-variant-emoji web font test</title>
      4 <link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-variant-emoji-prop" />
      5 <link rel="help" href="https://www.unicode.org/reports/tr51/tr51-25.html#Emoji_Properties_and_Data_Files" />
      6 <link rel="match" href="font-variant-emoji-005-ref.html"/>
      7 <meta name="assert" content="Digit-keycap sequences render as emoji if required, in preference to using the named font"/>
      8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      9 
     10 <style>
     11 body { background: white; }
     12 p { font: 16px/3 serif; }
     13 /* A color-emoji glyph in the span will be visible despite the white color;
     14 * if color-emoji presentation is not used, the span will be invisible.
     15 */
     16 span { color: white; font: 25px Ahem; }
     17 </style>
     18 
     19 <h4>Only lines 3 and 4 should show a keycap numeral:</h4>
     20 
     21 <p>1. text: <span style="font-variant-emoji: text">X1&#x20e3;X</span></p>
     22 
     23 <p>2. unicode: <span style="font-variant-emoji: unicode">X2&#x20e3;X</span></p>
     24 
     25 <p>3. emoji: <span style="font-variant-emoji: emoji">X3&#x20e3;X</span></p>
     26 
     27 <p>4. with VS16: <span style="font-variant-emoji: normal">X4&#xfe0f;&#x20e3;X</span></p>
     28 
     29 <p>5. emoji, with VS15: <span style="font-variant-emoji: emoji">X5&#xfe0e;&#x20e3;X</span></p>