W3C home > Mailing lists > Public > www-style@w3.org > August 2004

Re: [CSS21] Font-family syntax

From: Bert Bos <bert@w3.org>
Date: Fri, 20 Aug 2004 21:20:27 +0200
Message-ID: <16678.20219.160012.538488@lanalana.inria.fr>
To: www-style@w3.org

Boris Zbarsky writes:
> 
> Justin Wood wrote:
> >>     example { font-family: Trouble: A (Very) Troublesome Type Family & 
> >> Interesting Prospect. ; }
> >>
> > Though it can be said where that method is NOT to be written based on 
> > grammar/prose  it CAN be written legally syntacticly correct via quotes, 
> > which makes the issue moot, in my humble opinion.
> 
> As pointed out by Etan, it makes it moot to the _sheet_ author, not the 
> _parser_ author.
> 
> > where your example would be skipped do to parsing errors.
> 
> Why?  This is the issue at hand -- are there parsing errors in Etan's 
> example?  It's not clear to me that there are.  If there are, should 
> there be?

I think there is no parsing error: the parentheses are balanced and there
are no forbidden characters. I'm not a machine, but I think the tokens
are (omitting the whitespace tokens for brevity):

    IDENT  ->  Trouble
    DELIM  ->  :
    IDENT  ->  A
    (      ->  (
    IDENT  ->  Very
    )      ->  )
    IDENT  ->  Troublesome
    IDENT  ->  Type
    IDENT  ->  Family
    DELIM  ->  &
    IDENT  ->  Interesting
    IDENT  ->  Prospect
    DELIM  ->  .

It matches the general syntax for declarations and nothing in the
'font-family' definition forbids any of these tokens, as far as I
know.



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos/                              W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Friday, 20 August 2004 19:21:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:32 GMT