Skip to content

Commit 7a5e0d7

Browse files
committed
[css-fonts-4] Rename font-presentation to font-variant-emoji per WG resolution August 2017, #1092 (comment)
1 parent 2beaf6d commit 7a5e0d7

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3362,11 +3362,11 @@ might result in different used palettes
33623362
because the value of variables inside the ''@font-palette-values'' rule
33633363
might apply differently in the context of those two elements.
33643364

3365-
<h3 id="font-presentation-desc">
3366-
Selecting the text presentation style: The 'font-presentation' property</h3>
3365+
<h3 id="font-variant-emoji-desc">
3366+
Selecting the text presentation style: The 'font-variant-emoji' property</h3>
33673367

33683368
<pre class="propdef">
3369-
Name: font-presentation
3369+
Name: font-variant-emoji
33703370
Value: auto | text | emoji
33713371
Initial: auto
33723372
Applies to: all elements
@@ -3377,15 +3377,15 @@ Media: visual
33773377
Animatable: No (see below)
33783378
</pre>
33793379

3380-
Issue: <a href="https://github.com/w3c/csswg-drafts/issues/1092">Bikeshed the name.</a>
3380+
Issue: <a href="https://github.com/w3c/csswg-drafts/issues/1092">Bikeshed the values.</a>
33813381

33823382
This property allows web authors to select
33833383
whether emoji presentation or text presentation is used
33843384
for certain emoji code points.
33853385
Traditionally, these presentation styles were selected
33863386
by appending Variation Selector 15 (U+FE0E) or Variation Selector 16 (U+FE0F)
33873387
to certain code points.
3388-
However, 'font-presentation' allows web authors to set a default presentation style
3388+
However, 'font-variant-emoji' allows web authors to set a default presentation style
33893389
which can replace the variation selectors.
33903390

33913391
Only the code points <a href="http://www.unicode.org/emoji/charts/emoji-variants.html">listed</a> by Unicode
@@ -3396,7 +3396,7 @@ these characters are referred to as <dfn id="presentation-participating-code-poi
33963396
This property has no effect on any other characters.
33973397

33983398
This property is expected to affect font fallback;
3399-
however, the exact nature of the interaction of font fallback with 'font-presentation'
3399+
however, the exact nature of the interaction of font fallback with 'font-variant-emoji'
34003400
is explicitly unspecified.
34013401
However, a variation selector must be included in a previous cluster
34023402
as defined by the <a href="#cluster-matching">cluster matching</a> section above.
@@ -3405,11 +3405,11 @@ is treated as ancillary data to inform the font fallback routine.
34053405
A natural result of this behavior
34063406
is that a variation selector must not be rendered in a different font than the previous character.
34073407

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

34153415
Note: Different platforms have different conventions about how to handle emoji presentation sequences.
@@ -3426,7 +3426,7 @@ If one of these variation selectors is present,
34263426
but unsupported by the font previously selected,
34273427
the variation selector is ignored.
34283428

3429-
<dl dfn-for=font-presentation dfn-type=value>
3429+
<dl dfn-for=font-variant-emoji dfn-type=value>
34303430
<dt><dfn>auto</dfn>
34313431
<dd>
34323432
User Agents can choose to draw a <a>Presentation Participating Code Point</a>
@@ -3461,7 +3461,7 @@ the variation selector is ignored.
34613461
src: url("CustomEmoji.ttf") format("truetype");
34623462
}
34633463
...
3464-
&lt;div style="font-family: 'Custom Emoji'; font-presentation: emoji;"&gt;&amp;#x1F6CB;&lt;/div&gt;
3464+
&lt;div style="font-family: 'Custom Emoji'; font-variant-emoji: emoji;"&gt;&amp;#x1F6CB;&lt;/div&gt;
34653465
</pre>
34663466
</div>
34673467

0 commit comments

Comments
 (0)