W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2016

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

From: Christoph Päper via GitHub <sysbot+gh@w3.org>
Date: Thu, 28 Jul 2016 10:11:57 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-168060175-1469700715-sysbot+gh@w3.org>
Crissov has just created a new issue for 

== [css-fonts][css-text] Variant Selection of Colorful (Emoji) or 
Monochrome Glyphs ==
In late March, on 
 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 

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-case: 'none' | 'capitalize' | 'uppercase' | 
    text-transform-width: 'none' | 'full-width'
    text-transform-variation: 'none' | 'text' | 'emoji'

Bikeshedding welcome.

"[css-fonts] selecting color or monochrome glyphs for emoji fonts 
(John Daggett, 21 August 2014)"
 "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]: 
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)"
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 
Received on Thursday, 28 July 2016 10:12:05 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:00 UTC