You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -4027,13 +4027,18 @@ <h3 id=font-feature-values><span class=secno>6.9 </span>Defining font
4027
4027
class=prod><dfnid=ltfeature-indexgt><var><feature-index></var></dfn> = an integer value greater than 0 specific to a given font or set of fonts</pre>
4028
4028
4029
4029
<p>These @font-feature-values rules can appear anywhere within a stylesheet
4030
-
and are exposed bidirectionally across @import boundaries. If multiple
4031
-
@font-feature-values rules are defined for a given family, the resulting
4032
-
values defined are the union of these rules. This allows a set of
4033
-
named-values to be defined for a given font family globally for a site and
4034
-
specific additions made per-page. If the same <feature-value-name>
4035
-
is defined mulitple times for a given font-variant value, the last defined
4036
-
value is used.
4030
+
and are exposed bidirectionally across @import boundaries. Within each
4031
+
font feature values declaration, syntax errors such as unknown property
4032
+
value names, invalid identifiers or values result in the declaration being
4033
+
dropped, similar to the way syntax errors in style declarations are
4034
+
handled.
4035
+
4036
+
<p>If multiple @font-feature-values rules are defined for a given family,
4037
+
the resulting values defined are the union of these rules. This allows a
4038
+
set of named-values to be defined for a given font family globally for a
4039
+
site and specific additions made per-page. If the same
4040
+
<feature-value-name> is defined mulitple times for a given
4041
+
font-variant value, the last defined value is used.
4037
4042
4038
4043
<pre>
4039
4044
site.css:
@@ -4057,9 +4062,10 @@ <h3 id=font-feature-values><span class=secno>6.9 </span>Defining font
4057
4062
4058
4063
<p>Only named font families are allowed for <font-family>, rules that
4059
4064
include generic or system fonts in the list of font families are
4060
-
considered syntax errors and ignored. However, if a user agent defines a
4061
-
generic font to be a specific named font (e.g. Helvetica), the settings
4062
-
associated with that family name will be used.
4065
+
considered syntax errors and the contents of the rules are ignored.
4066
+
However, if a user agent defines a generic font to be a specific named
4067
+
font (e.g. Helvetica), the settings associated with that family name will
4068
+
be used.
4063
4069
4064
4070
<p>For <font-variant-property-value>, only font specific property value
4065
4071
names supported by the ‘<ahref="#propdef-font-variant"><code
@@ -4099,7 +4105,8 @@ <h3 id=font-feature-values><span class=secno>6.9 </span>Defining font
4099
4105
<p>For the styleset property value, multiple values indicate the style sets
4100
4106
to be enabled. Values between 1 and 20 enable OpenType features ‘<code
4101
4107
class=css>ss01</code>’ through ‘<codeclass=css>ss20</code>’. For
4102
-
OpenType fonts, values greater than 20 are ignored.
4108
+
OpenType fonts, values greater than 20 or 0 are ignored but do not
4109
+
generate a syntax error when parsed.
4103
4110
4104
4111
<pre>@font-feature-values Mars Serif {
4105
4112
@styleset alt-g 1, /* implies ss01 = 1 */
@@ -4117,10 +4124,11 @@ <h3 id=font-feature-values><span class=secno>6.9 </span>Defining font
4117
4124
<p>For character-variant, a single value between 1 and 99 indicates the
4118
4125
enabling of OpenType feature ‘<codeclass=css>cv01</code>’ through
4119
4126
‘<codeclass=css>cv99</code>’. For OpenType fonts, values greater than
4120
-
99 are ignored. When two values are listed, the first value indicates the
4121
-
feature used and the second the value passed for that feature. When two
4122
-
value names imply different settings for the same underlying feature the
4123
-
last setting is used.
4127
+
99 or 0 are ignored but do not generate a syntax error when parsed. When
4128
+
two values are listed, the first value indicates the feature used and the
4129
+
second the value passed for that feature. When two value names imply
4130
+
different settings for the same underlying feature the last setting is
0 commit comments