[csswg-drafts] [css-fonts][css-text] Variant Selection of Colorful (Emoji) or Monochrome Glyphs

Crissov has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-fonts][css-text] Variant Selection of Colorful (Emoji) or 
Monochrome Glyphs ==
In late March, on 
[www-style](https://lists.w3.org/Archives/Public/www-style/2016Mar/0370.html),
 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`][2014] (John Dagget), [`font-variant-emoji`][] 
(Xidorn Quan), “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-*`][css-fonts], not just 
because there’s no corresponding Open Type feature. I was about to 
propose the selection being part of [`text-transform`][css-text], 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.

[2014]: 
https://lists.w3.org/Archives/Public/www-style/2014Aug/0322.html 
"[css-fonts] selecting color or monochrome glyphs for emoji fonts 
(John Daggett, 21 August 2014)"
[request]: 
https://lists.w3.org/Archives/Member/member-i18n-core/2016Mar/0015.html
 "Unicode Consortium request (via Mark Davis) (Addison Philips, 24 
March 2016)"
[I18N minutes]: https://www.w3.org/2016/03/24-i18n-minutes.html "I18N 
WG minutes, 24 March 2016"
[Unicode minutes]: 
http://www.unicode.org/L2/L2015/15314-css-ctrl-emoji.pdf 
[UTR51]: 
http://www.unicode.org/reports/tr51/proposed.html#Presentation_Style 
[`@font-palette`]: 
https://lists.w3.org/Archives/Public/www-style/2014Aug/0353.html "Re: 
[css-fonts] selecting color or monochrome glyphs for emoji fonts 
(Cameron McCormack, 22 August 2014)"
[`font-variant-emoji`]: 
https://lists.w3.org/Archives/Public/www-style/2016Mar/0373.html "Re: 
Unicode request for CSS property to control emoji style 
[I18N-ACTION-500] (Xidorn Quan, 25 March 2016)"
[css-fonts]: https://drafts.csswg.org/css-fonts-3/#font-rend-props 
"CSS Fonts Module Level 3 (ED), 6. Font Feature Properties"
[css-text]: https://drafts.csswg.org/css-text-3/#transforming "CSS 
Text Module Level 3 (ED), 2. Transforming Text"

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/352 using your GitHub 
account

Received on Thursday, 28 July 2016 10:12:05 UTC