File: font-variant-emoji-003.html

package info (click to toggle)
thunderbird 1%3A140.4.0esr-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,609,432 kB
  • sloc: cpp: 7,672,442; javascript: 5,901,613; ansic: 3,898,954; python: 1,413,343; xml: 653,997; asm: 462,286; java: 180,927; sh: 113,489; makefile: 20,460; perl: 14,288; objc: 13,059; yacc: 4,583; pascal: 3,352; lex: 1,720; ruby: 1,222; exp: 762; sql: 715; awk: 580; php: 436; lisp: 430; sed: 70; csh: 10
file content (58 lines) | stat: -rw-r--r-- 1,832 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<meta charset="UTF-8" />
<title>CSS Fonts: font-variant-emoji web font test</title>
<link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-variant-emoji-prop" />
<link rel="help" href="https://www.unicode.org/reports/tr51" />
<link rel="match" href="font-variant-emoji-003-ref.html"/>
<meta name="assert" content="font-variant-emoji sets an emoji's presentation for the emoji default and text default emoji codepoints and affects the fallback font selection."/>
<link rel="stylesheet" type="text/css" href="support/css/variation-sequences.css" />
<style>
    div {
      height: 2em;
      font: 24px/1.5 serif;
    }

    .color-first span {
      font-family: ColorEmojiFont, MonoEmojiFont;
    }

    .mono-first span {
      font-family: MonoEmojiFont, ColorEmojiFont;
    }

    .emoji {
      font-variant-emoji: emoji;
    }

    .text {
      font-variant-emoji: text;
    }

    .unicode {
      font-variant-emoji: unicode;
    }
</style>

<p>Emoji Default</p>
<!-- Codepoint U+1FAE8 has emoji presentation by default,
(Emoji=Yes,Emoji_Presentation=Yes).
See https://www.unicode.org/Public/15.1.0/ucd/emoji/emoji-data.txt.
So when font-variant-emoji is set to `unicode`, the codepoint
should be displayed in color. -->
<div class="mono-first">
  <span class="emoji">&#x1fae8;</span>
  <span class="text">&#x1fae8;</span>
  <span class="unicode">&#x1fae8;</span>
</div>

<p>Text Default</p>
<!-- Codepoint U+2139 has text presentation by default,
(Emoji=Yes,Emoji_Presentation=No).
See https://www.unicode.org/Public/15.1.0/ucd/emoji/emoji-data.txt.
So when font-variant-emoji is set to `unicode`, the codepoint
should be displayed in monochrome. -->
<div class="color-first">
  <span class="emoji">&#x2139;</span>
  <span class="text">&#x2139;</span>
  <span class="unicode">&#x2139;</span>
</div>