Skip to content

Commit 2376070

Browse files
author
John Daggett
committed
[css3-fonts] add animatable attribute to font properties
1 parent d152572 commit 2376070

1 file changed

Lines changed: 112 additions & 11 deletions

File tree

css3-fonts/Overview.html

Lines changed: 112 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,11 @@ <h3 id=font-family-prop><span class=secno>3.1 </span>Font family: the <a
645645
<td>Computed value:
646646

647647
<td>as specified
648+
649+
<tr>
650+
<td>Animatable:
651+
652+
<td>no
648653
</table>
649654

650655
<p>This property specifies a prioritized list of font family names or
@@ -916,6 +921,13 @@ <h3 id=font-weight-prop><span class=secno>3.2 </span>Font weight: the <a
916921
<td>Computed value:
917922

918923
<td>see description
924+
925+
<tr>
926+
<td>Animatable:
927+
928+
<td>as <a
929+
href="http://dev.w3.org/csswg/css3-transitions/#animtype-font-weight">font
930+
weight</a>
919931
</table>
920932

921933
<p>The <a class=noxref href="#font-weight-prop"><span
@@ -1140,6 +1152,11 @@ <h3 id=font-stretch-prop><span class=secno>3.3 </span>Font width: the <a
11401152
<td>Computed value:
11411153

11421154
<td>as specified
1155+
1156+
<tr>
1157+
<td>Animatable:
1158+
1159+
<td>as <a href="#font-stretch-animation">font stretch</a>
11431160
</table>
11441161

11451162
<p>The <a class=noxref href="#font-stretch-prop"><span
@@ -1182,6 +1199,12 @@ <h3 id=font-stretch-prop><span class=secno>3.3 </span>Font width: the <a
11821199
<p class=caption>Width mappings for a font family with condensed, normal
11831200
and expanded width faces
11841201
</div>
1202+
1203+
<p id=font-stretch-animation>Animation of font stretch: Font stretch is
1204+
interpolated in discrete steps. The interpolation happens as though the
1205+
ordered values are equally spaced real numbers. The interpolation result
1206+
is rounded to the nearest value, with values exactly halfway between two
1207+
values rounded towards the later value in the list above.</p>
11851208
<!-- prop: font-style -->
11861209

11871210
<h3 id=font-style-prop><span class=secno>3.4 </span>Font style: the <a
@@ -1228,6 +1251,11 @@ <h3 id=font-style-prop><span class=secno>3.4 </span>Font style: the <a
12281251
<td>Computed value:
12291252

12301253
<td>as specified
1254+
1255+
<tr>
1256+
<td>Animatable:
1257+
1258+
<td>no
12311259
</table>
12321260

12331261
<p>The <a class=noxref href="#font-style-prop"><span
@@ -1314,6 +1342,12 @@ <h3 id=font-size-prop><span class=secno>3.5 </span>Font size: the <a
13141342
<td>Computed value:
13151343

13161344
<td>absolute length
1345+
1346+
<tr>
1347+
<td>Animatable:
1348+
1349+
<td>as <a
1350+
href="http://dev.w3.org/csswg/css3-transitions/#animtype-length">length</a>
13171351
</table>
13181352

13191353
<p>This property indicates the desired height of glyphs from the font. For
@@ -1535,6 +1569,12 @@ <h3 id=font-size-adjust-prop><span class=secno>3.6 </span>Relative sizing:
15351569
<td>Computed value:
15361570

15371571
<td>as specified
1572+
1573+
<tr>
1574+
<td>Animatable:
1575+
1576+
<td>as <a
1577+
href="http://dev.w3.org/csswg/css3-transitions/#animtype-number">number</a>
15381578
</table>
15391579

15401580
<p>For any given font size, the apparent size and legibility of text varies
@@ -1726,6 +1766,11 @@ <h3 id=font-prop><span class=secno>3.7 </span>Shorthand font property: the
17261766
<tr>
17271767
<td>Computed value:
17281768

1769+
<td>see individual properties
1770+
1771+
<tr>
1772+
<td>Animatable:
1773+
17291774
<td>see individual properties
17301775
</table>
17311776

@@ -1993,6 +2038,11 @@ <h3 id=font-synthesis-prop><span class=secno>3.8 </span>Controlling
19932038
<td>Computed value:
19942039

19952040
<td>as specified
2041+
2042+
<tr>
2043+
<td>Animatable:
2044+
2045+
<td>no
19962046
</table>
19972047

19982048
<p>This property controls whether user agents are allowed to synthesize
@@ -2262,7 +2312,8 @@ <h3 id=src-desc><span class=secno>4.3 </span>Font reference: the <a
22622312
format hints "truetype" and "opentype" must be considered as synonymous; a
22632313
format hint of "opentype" does not imply that the font contains Postscript
22642314
CFF style glyph data or that it contains OpenType layout information (see
2265-
Appendix A for more background on this).
2315+
<a href="#platform-props-to-css">Appendix A</a> for more background on
2316+
this).
22662317

22672318
<p>When authors would prefer to use a locally available copy of a given
22682319
font and download it if it's not, local() can be used. The locally
@@ -2910,13 +2961,13 @@ <h3 id=font-family-casing><span class=secno>5.1 </span>Case sensitivity of
29102961
<p class=note> For authors this means that font family names are matched
29112962
case insensitively, whether or not those names exist in a platform font or
29122963
in the <code>@font-face</code> rules contained in a stylesheet. Authors
2913-
should take care to normalize the names they use when using combining
2914-
diacritics, since names containing combining diacritics won't match
2915-
equivalent names that use precomposed characters. For example, a family
2916-
name that contains an uppercase A (U+0041) followed by a combining ring
2917-
(U+030A) will <strong>not</strong> match a name that is identical except
2918-
that it uses the precomposed lowercase a-ring character (U+00E5) instead
2919-
of the combining sequence.
2964+
should take care to ensure that names use a character sequence consistent
2965+
with the actual font family name, particularly when using combining
2966+
characters such as diacritical marks. For example, a family name that
2967+
contains an uppercase A (U+0041) followed by a combining ring (U+030A)
2968+
will <strong>not</strong> match a name that looks identical but which uses
2969+
the precomposed lowercase a-ring character (U+00E5) instead of the
2970+
combining sequence.
29202971

29212972
<h3 id=font-style-matching><span class=secno>5.2 </span>Matching font
29222973
styles</h3>
@@ -3353,6 +3404,11 @@ <h3 id=font-kerning-prop><span class=secno>6.3 </span>Kerning: the <a
33533404
<td>Computed value:
33543405

33553406
<td>as specified
3407+
3408+
<tr>
3409+
<td>Animatable:
3410+
3411+
<td>no
33563412
</table>
33573413

33583414
<p>Kerning is the contextual adjustment of inter-glyph spacing. This
@@ -3428,6 +3484,11 @@ <h3 id=font-variant-ligatures-prop><span class=secno>6.4 </span>Ligatures:
34283484
<td>Computed value:
34293485

34303486
<td>as specified
3487+
3488+
<tr>
3489+
<td>Animatable:
3490+
3491+
<td>no
34313492
</table>
34323493

34333494
<p>Ligatures and contextual forms are ways of combining glyphs to produce
@@ -3571,6 +3632,11 @@ <h3 id=font-variant-position-prop><span class=secno>6.5 </span>Subscript
35713632
<td>Computed value:
35723633

35733634
<td>as specified
3635+
3636+
<tr>
3637+
<td>Animatable:
3638+
3639+
<td>no
35743640
</table>
35753641

35763642
<p>This property is used to enable typographic subscript and superscript
@@ -3732,6 +3798,11 @@ <h3 id=font-variant-caps-prop><span class=secno>6.6 </span>Capitalization:
37323798
<td>Computed value:
37333799

37343800
<td>as specified
3801+
3802+
<tr>
3803+
<td>Animatable:
3804+
3805+
<td>no
37353806
</table>
37363807

37373808
<p>Specifies control over capitalized forms.
@@ -3920,6 +3991,11 @@ <h3 id=font-variant-numeric-prop><span class=secno>6.7 </span>Numerical
39203991
<td>Computed value:
39213992

39223993
<td>as specified
3994+
3995+
<tr>
3996+
<td>Animatable:
3997+
3998+
<td>no
39233999
</table>
39244000

39254001
<p>Specifies control over numerical forms.
@@ -4078,6 +4154,11 @@ <h3 id=font-variant-alternates-prop><span class=secno>6.8 </span>Alternates
40784154
<td>Computed value:
40794155

40804156
<td>as specified
4157+
4158+
<tr>
4159+
<td>Animatable:
4160+
4161+
<td>no
40814162
</table>
40824163

40834164
<p>For any given character, fonts can provide a variety of alternate glyphs
@@ -4486,6 +4567,11 @@ <h3 id=font-variant-east-asian-prop><span class=secno>6.10 </span>East
44864567
<td>Computed value:
44874568

44884569
<td>as specified
4570+
4571+
<tr>
4572+
<td>Animatable:
4573+
4574+
<td>no
44894575
</table>
44904576

44914577
<p>Allows control of glyph substitution and sizing in East Asian text.
@@ -4627,7 +4713,7 @@ <h3 id=font-variant-prop><span class=secno>6.11 </span>Overall shorthand
46274713
<tr>
46284714
<td>Percentages:
46294715

4630-
<td>N/A
4716+
<td>see individual properties
46314717

46324718
<tr>
46334719
<td>Media:
@@ -4637,7 +4723,12 @@ <h3 id=font-variant-prop><span class=secno>6.11 </span>Overall shorthand
46374723
<tr>
46384724
<td>Computed value:
46394725

4640-
<td>as specified
4726+
<td>see individual properties
4727+
4728+
<tr>
4729+
<td>Animatable:
4730+
4731+
<td>see individual properties
46414732
</table>
46424733

46434734
<p>The value ‘<a href="#normal2"><code
@@ -4701,6 +4792,11 @@ <h3 id=font-feature-settings-prop><span class=secno>6.12 </span>Low-level
47014792
<td>Computed value:
47024793

47034794
<td>as specified
4795+
4796+
<tr>
4797+
<td>Animatable:
4798+
4799+
<td>no
47044800
</table>
47054801

47064802
<p>This property provides low-level control over OpenType font features. It
@@ -4831,6 +4927,11 @@ <h3 id=font-language-override-prop><span class=secno>6.13 </span>Font
48314927
<td>Computed value:
48324928

48334929
<td>as specified
4930+
4931+
<tr>
4932+
<td>Animatable:
4933+
4934+
<td>no
48344935
</table>
48354936

48364937
<p>The value of ‘<a href="#normal2"><code
@@ -6603,7 +6704,7 @@ <h2 class=no-num id=property-index>Property index</h2>
66036704

66046705
<td>yes
66056706

6606-
<td>N/A
6707+
<td>see individual properties
66076708

66086709
<td>visual
66096710

0 commit comments

Comments
 (0)