CSS font-variant-emoji Property

❮ Previous Reference Next ❯

Example

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

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

Meaning:

The font-variant-emoji CSS property specifies the default presentation style for displaying emojis.

Default value:normal
Inherited:No
Animatable:No
Version:CSS3
JavaScript syntax:
object.style.fontVariantEmoji="normal|text|emoji|unicode|initial|inherit|revert|revert-layer|unset";



Standard Syntax

font-variant-emoji: normal|text|emoji|unicode|initial|inherit|revert|revert-layer|unset;



Browser Support




Status







Property Values

The following table describes the values of this property:

Value Description
normal Allows a browser to choose how to display the emoji. This often follows the operating system setting.
text Renders the emoji as if it were using the unicode text variation selector (U+FE0E).
emoji Renders the emoji as if it were using the unicode emoji variation selector (U+FE0F).
unicode Renders the emoji in accordance with the Emoji presentation properties. If the U+FE0E or U+FE0F variation selector is present, then it will override this value setting.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element animation-delay property.
revert Reverts the cascaded value of the property from its current value to the value the property
revert-layer Rollback styles to the ones specified in previous cascade layers.
unset Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.



Default CSS Property Values

selectors {
  font-variant-emoji: normal;
}
❮ Previous Reference Next ❯