@@ -915,7 +915,7 @@ <h3 id="font-size-prop">Font size: the <a href="#propdef-font-size">font-size</a
915
915
font. For scalable fonts, the font-size is a scale factor applied to the EM unit
916
916
of the font. (Note that certain glyphs may bleed outside their EM box.) For
917
917
non-scalable fonts, the font-size is converted into absolute units and matched
918
- against the declared font-size of the font, using the same absolute coordinate
918
+ against the declared ' font-size' of the font, using the same absolute coordinate
919
919
space for both of the matched values.
920
920
Values have the following meanings:</ p >
921
921
@@ -925,15 +925,15 @@ <h3 id="font-size-prop">Font size: the <a href="#propdef-font-size">font-size</a
925
925
in a table of font sizes computed and kept by the user agent. Possible values
926
926
are:
927
927
928
- < p > [ xx-small | x-small | small | medium | large | x-large | xx-large ]</ p >
928
+ < p > < code > [ xx-small | x-small | small | medium | large | x-large | xx-large ]</ code > </ p >
929
929
930
930
< dt > < dfn id ="relative-size-value "> < var > <relative-size></ var > </ dfn >
931
931
932
932
< dd > A < var > <relative-size></ var > keyword is interpreted
933
933
relative to the table of font sizes and the computed 'font-size' of the
934
934
parent element. Possible values are:
935
935
936
- < p > [ larger | smaller ]
936
+ < p > < code > [ larger | smaller ]</ code >
937
937
938
938
< p > For example, if the parent element has a font size of
939
939
'medium', a value of 'larger' will make the font size of the
@@ -962,13 +962,13 @@ <h3 id="font-size-prop">Font size: the <a href="#propdef-font-size">font-size</a
962
962
< table class ="data ">
963
963
< thead >
964
964
< th > CSS absolute-size values</ th >
965
- < th > xx-small</ td >
966
- < th > x-small</ td >
967
- < th > small</ td >
968
- < th > medium</ td >
969
- < th > large</ td >
970
- < th > x-large</ td >
971
- < th > xx-large</ td >
965
+ < th > < code > xx-small</ code > </ td >
966
+ < th > < code > x-small</ code > </ td >
967
+ < th > < code > small</ code > </ td >
968
+ < th > < code > medium</ code > </ td >
969
+ < th > < code > large</ code > </ td >
970
+ < th > < code > x-large</ code > </ td >
971
+ < th > < code > xx-large</ code > </ td >
972
972
< th > </ td >
973
973
</ thead >
974
974
< tbody >
@@ -1088,7 +1088,7 @@ <h3 id="font-size-adjust-prop">Relative sizing: the <a href="#propdef-font-size-
1088
1088
of lowercase letters compared to their uppercase counterparts is a
1089
1089
determining factor of legibility. This is commonly referred to as the
1090
1090
< span class ="index-def " title ="aspect value "> < dfn > aspect value</ dfn > </ span > .
1091
- Precisely defined, it is equal to the x-height of a font divided by
1091
+ Precisely defined, it is equal to the < code > x-height</ code > of a font divided by
1092
1092
the font size.</ p >
1093
1093
1094
1094
< p > In situations where font fallback occurs, fallback fonts may not
@@ -1665,41 +1665,41 @@ <h3 id="src-desc">Font reference: the <a href="#descdef-src">src</a> descriptor<
1665
1665
</ thead >
1666
1666
< tbody >
1667
1667
< tr >
1668
- < th > "woff"</ th >
1668
+ < th > < code > "woff"</ code > </ th >
1669
1669
< td > < a href ="https://www.w3.org/TR/WOFF/ "> WOFF 1.0 (Web Open Font Format)</ a > </ td >
1670
1670
< td > .woff</ td >
1671
1671
</ tr >
1672
1672
< tr >
1673
- < th > "woff2"</ th >
1673
+ < th > < code > "woff2"</ code > </ th >
1674
1674
< td > < a href ="https://www.w3.org/TR/WOFF2/ "> WOFF 2.0 (Web Open Font Format)</ a > </ td >
1675
1675
< td > .woff2</ td >
1676
1676
</ tr >
1677
1677
< tr >
1678
- < th > "truetype"</ th >
1678
+ < th > < code > "truetype"</ code > </ th >
1679
1679
< td > < a href ="https://www.microsoft.com/typography/otspec/default.htm "> TrueType</ a > </ td >
1680
1680
< td > .ttf</ td >
1681
1681
</ tr >
1682
1682
< tr >
1683
- < th > "opentype"</ th >
1683
+ < th > < code > "opentype"</ code > </ th >
1684
1684
< td > < a href ="https://www.microsoft.com/typography/otspec/default.htm "> OpenType</ a > </ td >
1685
1685
< td > .ttf, .otf</ td >
1686
1686
</ tr >
1687
1687
< tr >
1688
- < th > "embedded-opentype"</ th >
1688
+ < th > < code > "embedded-opentype"</ code > </ th >
1689
1689
< td > < a href ="https://www.w3.org/Submission/2008/SUBM-EOT-20080305/ "> Embedded OpenType</ a > </ td >
1690
1690
< td > .eot</ td >
1691
1691
</ tr >
1692
1692
< tr >
1693
- < th > "svg"</ th >
1693
+ < th > < code > "svg"</ code > </ th >
1694
1694
< td > < a href ="https://www.w3.org/TR/SVG/fonts.html "> SVG Font</ a > </ td >
1695
1695
< td > .svg, .svgz</ td >
1696
1696
</ tr >
1697
1697
</ tbody >
1698
1698
</ table >
1699
1699
1700
1700
< p > Given the overlap in common usage between TrueType and OpenType, the
1701
- format hints "truetype" and "opentype" must be considered as synonymous;
1702
- a format hint of "opentype" does not imply that the font contains
1701
+ format hints < code > "truetype"</ code > and < code > "opentype"</ code > must be considered as synonymous;
1702
+ a format hint of < code > "opentype"</ code > does not imply that the font contains
1703
1703
Postscript CFF style glyph data or that it contains OpenType layout
1704
1704
information (see < a href ="#platform-props-to-css "> Appendix A</ a > for more background on this).
1705
1705
</ p >
@@ -1710,7 +1710,7 @@ <h3 id="src-desc">Font reference: the <a href="#descdef-src">src</a> descriptor<
1710
1710
argument to < code > local()</ code > is a format-specific string that
1711
1711
uniquely identifies a single font face within a larger family. The
1712
1712
syntax for a < var > <font-face-name></ var > is a unique font face
1713
- name enclosed by "local(" and ")". The name can optionally be
1713
+ name enclosed by < code > "local("</ code > and < code > ")"</ code > . The name can optionally be
1714
1714
enclosed in quotes. If unquoted, the unquoted font family name
1715
1715
processing conventions apply; the name must be a sequence of
1716
1716
identifiers separated by < a href ="https://www.w3.org/TR/css3-syntax/#whitespace "> whitespace</ a >
@@ -1749,15 +1749,15 @@ <h3 id="src-desc">Font reference: the <a href="#descdef-src">src</a> descriptor<
1749
1749
font, not an entire font family. Defined in terms of
1750
1750
OpenType font data, the Postscript name is found in the font's
1751
1751
< a href ="https://www.microsoft.com/typography/otspec/name.htm "> name table</ a > ,
1752
- in the name record with nameID = 6 (see
1752
+ in the name record with < code > nameID = 6</ code > (see
1753
1753
[[!OPENTYPE]] for more details). The Postscript name is the commonly
1754
1754
used key for all fonts on OSX and for Postscript CFF fonts under
1755
- Windows. The full font name (nameID = 4) is used as a unique key for
1755
+ Windows. The full font name (< code > nameID = 4</ code > ) is used as a unique key for
1756
1756
fonts with TrueType glyphs on Windows.
1757
1757
</ p >
1758
1758
1759
1759
< p > For OpenType fonts with multiple localizations of the full font name, the US
1760
- English version is used (language ID = 0x409 for Windows and language ID = 0 for Macintosh)
1760
+ English version is used (< code > language ID = 0x409</ code > for Windows and < code > language ID = 0</ code > for Macintosh)
1761
1761
or the first localization
1762
1762
when a US English full font name is not available (the OpenType
1763
1763
specification recommends that < a
@@ -1769,8 +1769,8 @@ <h3 id="src-desc">Font reference: the <a href="#descdef-src">src</a> descriptor<
1769
1769
font versions and OS localizations, since font style names (e.g. "Bold")
1770
1770
are frequently localized into many languages and the set of
1771
1771
localizations available varies widely across platform and font version.
1772
- User agents that match a concatenation of family name (nameID = 1) with
1773
- style name (nameID = 2) are considered non-conformant.
1772
+ User agents that match a concatenation of family name (< code > nameID = 1</ code > ) with
1773
+ style name (< code > nameID = 2</ code > ) are considered non-conformant.
1774
1774
</ p >
1775
1775
1776
1776
< p > This also allows for referencing faces that belong to larger
@@ -3136,7 +3136,7 @@ <h3 id="font-variant-position-prop">Subscript and superscript forms: the <a href
3136
3136
}
3137
3137
</ pre >
3138
3138
3139
- < p > Using font-variant-position to specify typographic subscripts in a way
3139
+ < p > Using ' font-variant-position' to specify typographic subscripts in a way
3140
3140
that will still show subscripts in older user agents:</ p >
3141
3141
3142
3142
< pre > @supports ( font-variant-position: sub ) {
@@ -3259,6 +3259,8 @@ <h3 id="font-variant-caps-prop">Capitalization: the <a href="#propdef-font-varia
3259
3259
< p > The 'font-feature-settings' property does not affect the decision of
3260
3260
whether or not to use a simulated small-caps font.< p >
3261
3261
3262
+ <!-- but it does in Fonts 4 -->
3263
+
3262
3264
< div class ="example ">
3263
3265
< pre > #example1 { font-variant-caps: small-caps; }
3264
3266
#example2 { font-variant-caps: small-caps; font-feature-settings: 'smcp' 0; }</ pre >
0 commit comments