Skip to content

Commit 7d5a4b6

Browse files
committed
[css2] Applied errata: Added note that unquoted 'inherit' cannot be a family
name, not even if it in between other family names. See http://lists.w3.org/Archives/Public/www-style/2012May/0063.html --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%403281
1 parent 9f7bc63 commit 7d5a4b6

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

css2/fonts.src

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: fonts.src,v 2.107 2011-10-18 19:25:27 bbos Exp $ -->
3+
<!-- $Id: fonts.src,v 2.108 2013-05-02 18:09:15 bbos Exp $ -->
44
<head>
55
<title>Fonts</title>
66
<!--script src="http://www.w3c-test.org/css/harness/annotate.js#CSS21_DEV" type="text/javascript" defer></script-->
@@ -198,14 +198,14 @@ body { font-family: "New Century Schoolbook", serif }
198198
&lt;BODY STYLE="font-family: '21st Century', fantasy">
199199
</pre>
200200

201-
<p>Font family <em>names</em> that happen to be the same as a keyword
202-
value ('inherit', 'serif', 'sans-serif', 'monospace', 'fantasy', and
203-
'cursive') must be quoted to prevent confusion with the keywords with
204-
the same names. The keywords 'initial' and 'default' are reserved for
205-
future use and must also be quoted when used as font names. UAs must
206-
not consider these keywords as matching the '&lt;family-name&gt;'
207-
type.
208-
</p>
201+
<p>Unquoted font family <em>names</em> that happen to be the same as
202+
the keyword values 'inherit', 'default' and 'initial' or the generic
203+
font keywords ('serif', 'sans-serif', 'monospace', 'fantasy', and
204+
'cursive') do not match the '&lt;family-name&gt;' type. These names
205+
must be quoted to prevent confusion with the keywords with the same
206+
names. Note that 'font-family: Times, inherit' is therefore an invalid
207+
declaration, because 'inherit' in that position can neither be a valid
208+
keyword nor a valid font family name.
209209

210210

211211
<h3><a name="generic-font-families">Generic font families</a></h3>

0 commit comments

Comments
 (0)