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
@@ -90,12 +93,13 @@ will be satisfied if there is either a face in the UA's font database
90
93
labeled with the CSS keyword 'italic' (preferred) or 'oblique'.
91
94
Otherwise the values must be matched exactly or font-style will fail.
92
95
</li>
93
-
<li><span class="propinst-font-variant">'font-variant'</span> is tried next. 'normal'
94
-
matches a font not labeled as 'small-caps'; 'small-caps' matches (1) a
96
+
<li><span class="propinst-font-variant">'font-variant'</span> is tried next. <span class="delcurrent">'normal' matches a font not labeled as 'small-caps';</span> 'small-caps' matches (1) a
95
97
font labeled as 'small-caps', (2) a font in which the small caps are
96
98
synthesized, or (3) a font where all lowercase letters are replaced by
97
99
upper case letters. A small-caps font may be synthesized by
98
-
electronically scaling uppercase letters from a normal font.
100
+
electronically scaling uppercase letters from a normal font.
101
+
<span class="insproposed">'normal' matches a font's normal (non-small-caps) variant. A font cannot fail to have a normal variant. A font
102
+
that is only available as small-caps shall be selectable as either a 'normal' face or a 'small-caps' face.</span>
99
103
</li>
100
104
<li><span class="propinst-font-weight">'font-weight'</span> is matched next, it will
101
105
never fail. (See 'font-weight' below.)
@@ -164,6 +168,10 @@ as a last alternative. Generic font family names are keywords and must NOT be q
164
168
</dd>
165
169
</dl>
166
170
171
+
<del class="current">
172
+
<p>Font names containing whitespace should be quoted:
173
+
</p>
174
+
</del>
167
175
<ins class="proposed">
168
176
<p>If an unquoted font family name contains
169
177
parentheses, brackets, and/or braces, they must still be either balanced or
@@ -172,10 +180,7 @@ exclamation marks and commas within unquoted font family names must be escaped.
172
180
Font names containing any such characters or whitespace should be quoted:
173
181
</p>
174
182
</ins>
175
-
<del class="proposed">
176
-
<p>Font names containing whitespace should be quoted:
177
-
</p>
178
-
</del>
183
+
179
184
<pre>
180
185
body { font-family: "New Century Schoolbook", serif }
181
186
@@ -185,7 +190,10 @@ body { font-family: "New Century Schoolbook", serif }
185
190
<p>If quoting is omitted, any whitespace characters before and after
186
191
the font name are ignored and any sequence of whitespace characters
187
192
inside the font name is converted to a single space.
193
+
194
+
Font family <em>names</em> that happen to be the same as a keyword value (e.g. 'initial', 'inherit', 'default', 'serif', 'sans-serif', 'monospace', 'fantasy', and 'cursive') must be quoted to prevent confusion with the keywords with the same names. UAs must not consider these keywords as matching the '<family-name>' type.
0 commit comments