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: Jens Brueckmann <jens.brueckmann@gmail.com>
Date: Tue, 22 Aug 2006 09:16:36 +0200
Message-ID: <fe03a57b0608220016r605cd42dj6597c3ed0c9639c3@mail.gmail.com>
To: www-validator-css@w3.org
Cc: "Cecil Ward" <cecil@cecilward.com>

Hi Cecil,

The expression "must not" in the specification is to be understood as
described in RFC 2119:
  http://www.w3.org/TR/CSS2/conform.html#q1

Thus, in your example

   a {font-family: "Serif";}

the string "Serif" actually refers to a font with this name, as David
and Philip already pointed out.

Enabling warnings in the CSS validator when validating this fragment,
the validator issues a warning:

| font-family: You are encouraged to offer a generic family as a last
alternative

This warning tells you that you missed supplying a generic font family
keyword like serif.

http://jigsaw.w3.org/css-validator/validator?text=a%7Bfont-family%3A%22Serif%22%3B%7D&warning=2&profile=css2

Cheers,

jens

-- 
Jens Brueckmann
http://www.yalf.de
Received on Tuesday, 22 August 2006 07:16:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:17 GMT