@@ -3845,17 +3845,22 @@ <h3 id=font-variant-position-prop><span class=secno>6.5 </span>Subscript
38453845 given contiguous run of text, if a variant glyph is not available for all
38463846 the characters in the run, simulated glyphs must be synthesized for all
38473847 characters using reduced forms of the glyphs that would be used without
3848- this feature applied. This is done to avoid a mixture of variant glyphs
3849- and synthesized ones that would not align correctly.
3850-
3851- < p > In the case of OpenType fonts that lack subscript or superscript glyphs
3852- for a given character, user agents must use the appropriate subscript and
3853- superscript metrics specified in the selected font's < a
3848+ this feature applied. This is done per run to avoid a mixture of variant
3849+ glyphs and synthesized ones that would not align correctly. In the case of
3850+ OpenType fonts that lack subscript or superscript glyphs for a given
3851+ character, user agents must use the appropriate subscript and superscript
3852+ metrics specified in the selected font's < a
38543853 href ="http://www.microsoft.com/typography/otspec/os2.htm#subxs "> OS/2
38553854 table</ a > < a href ="#OPENTYPE "
38563855 rel =biblioentry > [OPENTYPE]<!--{{!OPENTYPE}}--> </ a > to calculate the size
38573856 and offset of the synthesized substitutes.
38583857
3858+ < div class =figure > < img alt ="alternate superscripts vs. glyphs synthesized
3859+ using superscript metrics " src =superscript-alt-synth.png >
3860+ < p class =caption > Superscript alternate glyph (left), synthesized
3861+ superscript glyphs (middle), and incorrect mixture of the two (right)
3862+ </ div >
3863+
38593864 < p > In the past, user agents have used font-size and vertical-align to
38603865 simulate subscripts and superscripts for the < a class =tag
38613866 href ="#sub "> sub</ a > and < span class =tag > sup</ span > elements. To allow a
@@ -3867,21 +3872,15 @@ <h3 id=font-variant-position-prop><span class=secno>6.5 </span>Subscript
38673872
38683873 < p > Authors should note that fonts typically only provide subscript and
38693874 superscript glyphs for a subset of all characters supported by the font.
3870- While subscript and superscript glyphs are often available for Latin
3871- numbers, glyphs for punctuation and letter characters are less frequently
3872- provided. The synthetic fallback rules defined for this property assure
3873- that subscripts and superscripts will always appear but the appearance may
3874- not match author expectations if the font used does not provide the
3875- appropriate alternate glyph for all characters contained in a subscript or
3876- superscript.
3877-
3878- < div class =figure > < img alt ="alternate superscripts vs. glyphs synthesized
3879- using superscript metrics " src =superscript-alt-synth.png >
3880- < p class =caption > Superscript alternate glyph (left), synthesized
3881- superscript glyphs (middle), and incorrect mixture of the two (right)
3882- </ div >
3883-
3884- < p > This property is not cumulative, applying it to subelements within a
3875+ For example, while subscript and superscript glyphs are often available
3876+ for Latin numbers, glyphs for punctuation and letter characters are less
3877+ frequently provided. The synthetic fallback rules defined for this
3878+ property assure that subscripts and superscripts will always appear but
3879+ the appearance may not match author expectations if the font used does not
3880+ provide the appropriate alternate glyph for all characters contained in a
3881+ subscript or superscript.
3882+
3883+ < p > This property is not cumulative. Applying it to elements within a
38853884 subscript or superscript won't nest the placement of a subscript or
38863885 superscript glyph. Images contained within text runs where the value of
38873886 this property is ‘< a href ="#sub "> < code class =property > sub</ code > </ a > ’
@@ -3892,8 +3891,14 @@ <h3 id=font-variant-position-prop><span class=secno>6.5 </span>Subscript
38923891 would for the default glyphs, since this property does not affect the
38933892 baseline position.
38943893
3895- < p > Because of these limitations, font-variant-position is not recommended
3896- for use in user agent stylesheets. Authors should use it in cases where
3894+ < p class =issue > Some have suggested that text decorations should apply to
3895+ the visual baseline of the variant glyphs, rather than the baseline
3896+ defined by the font.
3897+
3898+ < p > Because of these limitations, ‘< a
3899+ href ="#propdef-font-variant-position "> < code
3900+ class =property > font-variant-position</ code > </ a > ’ is not recommended for
3901+ use in user agent stylesheets. Authors should use it in cases where
38973902 subscripts or superscripts will only contain the narrow range of
38983903 characters supported by the fonts specified.
38993904
@@ -3914,7 +3919,7 @@ <h3 id=font-variant-position-prop><span class=secno>6.5 </span>Subscript
39143919 < pre > @supports ( font-variant-position: sub ) {
39153920
39163921 sub {
3917- vertical-align: inherit ;
3922+ vertical-align: baseline ;
39183923 font-size: 100%;
39193924 line-height: inherit;
39203925 font-variant-position: sub;
@@ -3991,7 +3996,10 @@ <h3 id=font-variant-caps-prop><span class=secno>6.6 </span>Capitalization:
39913996 < td > no
39923997 </ table >
39933998
3994- < p > Specifies control over capitalized forms.
3999+ < p > This property allows the selection of alternate glyphs used for small or
4000+ petite capitals or for titling. These glyphs are specifically designed to
4001+ blend well with the surrounding normal glyphs, to maintain the weight and
4002+ readability which suffers when text is simply resized to fit this purpose.
39954003
39964004 < p > Individual values have the following meanings:
39974005
@@ -4041,11 +4049,6 @@ <h3 id=font-variant-caps-prop><span class=secno>6.6 </span>Capitalization:
40414049 for this situation.
40424050 </ dl >
40434051
4044- < p > This property allows the selection of alternate glyphs used for small or
4045- petite capitals or for titling. These glyphs are specifically designed to
4046- blend well with the surrounding normal glyphs, to maintain the weight and
4047- readability which suffers when text is simply resized to fit this purpose.
4048-
40494052 < p > The availability of these glyphs is based on whether a given feature is
40504053 defined or not in the feature list of the font. User agents can optionally
40514054 decide this on a per-script basis but should explicitly not decide this on
@@ -4105,7 +4108,7 @@ <h3 id=font-variant-caps-prop><span class=secno>6.6 </span>Capitalization:
41054108 effect.
41064109
41074110 < p > When casing transforms are used to simulate small capitals, the casing
4108- transformations should match those used for the < span
4111+ transformations must match those used for the < span
41094112 class =property > ‘< code class =property > text-transform</ code > ’</ span >
41104113 property.
41114114
0 commit comments