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

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 UTC