Re: Validator incorrectly reports validity for case of font-family _keyword_ that is enclosed in quotes

On Sun, Aug 20, 2006 at 09:39:53PM +0100, Cecil Ward wrote:
> a { font-family:  "Serif"; }
> 
> 
> I believe that the above is illegal, if my reading of CSS 2.1 and CSS 2 is
> correct, yet the validator reports no error.
> 
> Reasoning: CSS2 section 15.2.2 states "Generic font family names are
> keywords, and therefore must not be quoted.".

If it is quoted then it is not a keyword, therefore it is no a generic
font family name, therefore it is a font called "Serif" rather than "A
serif font".

I don't think this is an error.

-- 
David Dorward                                      http://dorward.me.uk

Received on Monday, 21 August 2006 11:04:01 UTC