W3C home > Mailing lists > Public > www-style@w3.org > April 2009

[css2.1] [css3-fonts] <family-name> ambiguous - partially quoted names allowed?

From: Zack Weinberg <zweinberg@mozilla.com>
Date: Tue, 21 Apr 2009 13:54:08 -0700
To: W3C Emailing list for WWW Style <www-style@w3.org>, John Daggett <jdaggett@mozilla.com>
Message-ID: <20090421135408.3ae7866b@mozilla.com>
Mozilla has a bug report[1] requesting that this:

  font-family: "lucida" grande;

be treated as equivalent to this:

  font-family: lucida grande;

There is no formal grammar for <family-name> and the prose does not say
whether some-but-not-all tokens of a family-name can be quoted.  Matter
of fact, it doesn't really explain what the grammar is at all - it just
says that certain punctuation characters must be \-escaped if they
appear unquoted in a family-name.

My preferred reading of the spec would disallow partial quotation, but
what I really care about as an implementor is that there be an
unambiguous, ideally formal, grammar for every nonterminal.

zw

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=481502 (note that the
initial discussion is about font: rather than font-family:, but the
requested change would affect both, and is easier to explain in terms
of the longhand notation).
Received on Tuesday, 21 April 2009 20:54:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:46:58 GMT