File: font-variant-emoji-003.html

package info (click to toggle)
firefox 145.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,653,344 kB
  • sloc: cpp: 7,594,932; javascript: 6,459,612; ansic: 3,752,905; python: 1,403,433; xml: 629,811; asm: 438,677; java: 186,421; sh: 67,287; makefile: 19,169; objc: 13,086; perl: 12,982; yacc: 4,583; cs: 3,846; pascal: 3,448; lex: 1,720; ruby: 1,003; exp: 762; php: 436; lisp: 258; awk: 247; sql: 66; sed: 54; csh: 10
file content (58 lines) | stat: -rw-r--r-- 1,832 bytes parent folder | download | duplicates (12)
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>