8000 [css-fonts] Clarification font-variant-emoji should not affect characters `0-9#*` · Issue #11014 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-fonts] Clarification font-variant-emoji should not affect characters 0-9#* #11014

@yisibl

Description

@yisibl

Only the code points listed by Unicode as contributing to a Unicode emoji presentation sequence are affected by this property. Within this CSS specification, these characters are referred to as Emoji Presentation Participating Code Points. This property has no effect on any other characters.

Consider the following use case:

data:text/html;charset=UTF-8,<!doctype html>
<style>
  .test { font-size: 52px; }
  .test { font-variant-emoji: emoji; font-family: Arial; }
</style> 

<div class="test">⬆379 kB/s</div>

image

The author only wants to change the style of the arrow (⬆︎), but when font-variant-emoji: emoji is applied, the font-family of the number 379 also becomes the font-family of the Emoji. this is something the author doesn't want.

Although, UTS#51 states that 0-9#* have the Emoji property, I think they should be excluded from font-variant-emoji.

emoji_character := \p{Emoji}
https://www.unicode.org/reports/tr51/#def_emoji_character

Since Chrome has shipped, we need to clarify this in the CSS specification as soon as possible.

I've already filed a bug for Chrome: https://issues.chromium.org/issues/369781730

cc @svgeesus @drott @jfkthame @markusicu

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0