Skip to content

[css-fonts][css-text] Variation Selection of Colorful (Emoji) or Monochrome Glyphs #352

Closed
@Crissov

Description

@Crissov

In late March, on www-style, Addison Philips posted a request on behalf of W3C’s I18N WG to be able to control the style of emoji characters via CSS. There were links to the relevant I18N minutes and Unicode minutes as well as the reference document UTR51.

default : style characters to use each character's default display
text : style characters to use their text display
emoji : style characters to use their emoji display

The issue had been brought up in 2014 already, but I cannot find a WG conclusion on it. It has been suggested to be handled by font-variant-color (John Dagget), font-variant-emoji (Xidorn Quan @upsuper), “something more generic” or @font-palette (Cameron McCormack @heycam) or “a new property” (Amelia Bellamy Royds @AmeliaBR).

I agree with some of the concerns that this is not an issue appropriate to be handled by font-variant-*, not just because there’s no corresponding Open Type feature. I was about to propose the selection being part of text-transform, but I then realized that this would only be reasonable to override or synthesize variation selectors (U+FE0E = VS-15 ‘text’, U+FE0F = VS-16 ‘emoji’). UTR51 wants VSs to take precedence over normal styling, though. I suggest we add both capabilities!

font-color: 'auto' | 'monochrome' | 'colorful'  | <color>+

text-transform: <text-transform-case> || <text-transform-width> || <text-transform-variation>
text-transform-case: 'none' | 'capitalize' | 'uppercase' | 'lowercase'
text-transform-width: 'none' | 'full-width'
text-transform-variation: 'none' | 'text' | 'emoji'

Bikeshedding welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    css-fonts-4Current Workcss-text-4i18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions