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

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 UTC