Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-fonts/font-variant-emoji-003.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="UTF-8" />
<title>CSS Fonts: font-variant-emoji web font test</title>
<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>
.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).
So when font-variant-emoji is set to `unicode`, the codepoint
should be displayed in color. -->
<div style="font-family: MonoEmojiFont, ColorEmojiFont;">
<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).
So when font-variant-emoji is set to `unicode`, the codepoint
should be displayed in monochrome. -->
<div style="font-family: ColorEmojiFont, MonoEmojiFont;">
<span class="emoji">ℹ</span>
<span class="text">ℹ</span>
<span class="unicode">ℹ</span>
</div>