Description
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.