W3C home > Mailing lists > Public > www-validator-css@w3.org > August 2006

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

From: David Dorward <david@dorward.me.uk>
Date: Mon, 21 Aug 2006 12:03:43 +0100
To: Cecil Ward <cecil@cecilward.com>
Cc: www-validator-css@w3.org
Message-ID: <20060821110343.GB30807@us-lot.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:00:57 UTC