Skip to content

[css-text][css-fonts] Override (Emoji) Variation Selectors #1144

@Crissov

Description

@Crissov
 font-presentation: auto | text | emoji

Even when font-presentation is used, the presence of Variation Selector 15 (U+FE0E) or Variation Selector 16 (U+FE0F) in the contents of an element override the rendering specified in font-presentation. Therefore, font-presentation sets a default presentation which the text being rendered can opt out of.

Continuing #352 and leaving #1092 aside for now, the draft Fonts property could be left as is, but then should be accompanied by a Text property able to override variation selectors 15 and 16 (and possibly others as well).

Possible solution with CSS-Text

text-transform-variant: none | emoji | text | <integer>
  • none: no changes
  • <integer>: apply Unicode variation selector
  • text: same as 15
  • emoji: same as 16

  • Issue: There are 256 general-purpose variation selectors in two different Unicode blocks (U+FE0x and U+E010yz, y != F) that could be accessed this way, but also some script-specific ones – U+180B–D for Mongolian in particular – that would need additional keywords to be covered.
  • Note: VS-4 through 14 are not used yet in StandardizedVariants.txt

Possible solution without CSS-Text

 font-presentation: auto | text | emoji | text-override | emoji-override

or

 font-presentation: auto | (text | emoji) override?

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