-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathfont-variant-emoji-003.html
58 lines (51 loc) · 1.79 KB
/
font-variant-emoji-003.html
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">🫨</span>
<span class="text">🫨</span>
<span class="unicode">🫨</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">ℹ</span>
<span class="text">ℹ</span>
<span class="unicode">ℹ</span>
</div>