W3C home > Mailing lists > Public > www-style@w3.org > October 2010

[ccs3-fonts] Missing text about quoted font-family

From: Brady Duga <duga@ljug.com>
Date: Fri, 29 Oct 2010 13:05:31 -0700
Message-Id: <755CE444-34A8-4BE3-9DDF-E201DC265306@ljug.com>
Cc: Brady Duga <duga@ljug.com>
To: "www-style@w3.org CSS" <www-style@w3.org>
Apologies if this has been addressed - I didn't see it covered in a quick search of the archives. In CSS 2, rev 1 the following text appears to have been added in the font-family section:

--- snip ---

If an unquoted font family name contains parentheses, brackets, and/or braces, they must still be escaped per CSS grammar rules. Similarly, quotation marks (both single and double), semicolons, exclamation marks, commas, and leading slashes within unquoted font family names must be escaped. Font names containing any such characters or white space should be quoted:

body { font-family: "New Century Schoolbook", serif }
<BODY STYLE="font-family: 'My own font', fantasy">
If quoting is omitted, any white space characters before and after the font name are ignored and any sequence of white space characters inside the font name is converted to a single space. Font family names that happen to be the same as a keyword value ('inherit', 'serif', 'sans-serif', 'monospace', 'fantasy', and 'cursive') must be quoted to prevent confusion with the keywords with the same names. The keywords 'initial' and 'default' are reserved for future use and must also be quoted when used as font names. UAs must not consider these keywords as matching the '<family-name>' type.

--- /snip ---

I don't think this appeared in the original CSS 2 and was presumably added to clarify confusing cases (e.g. unquoted use of My Family (TT version) ). However, this text does not seem to be in the latest drafts of CSS 3 fonts (specifically looking at the August 10th 2010 draft, but it also seems to be missing from earlier versions). The text in CSS 3 Fonts seem to be taken from the original CSS 2, just mentioning that multi-word names should be quoted.

Received on Friday, 29 October 2010 20:06:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:40 UTC