Font shorthand not validating
Jay Cornell <[email protected]> Thu, 3 May 2012 14:25:13 -0700
| Newsgroups | gmane.org.w3c.validator.css |
|---|---|
| Message-ID | <[email protected]> |
I have used the validator for years, but suddenly standard font
declaration shorthand is not validating, apparently because of the
slash between the font-size and line-height. Thus this code:
p { font: 11px/14px Arial, Helvetica, sans-serif; }
gives this error:
Value Error : font / is not a font-family value : 11px / 14px
Arial,Helvetica,sans-serif
But without the slash and the line-height value it validates:
p { font: 11px Arial, Helvetica, sans-serif; }
Even the W3C's own first example here gives the same validation error!
http://www.w3.org/TR/CSS2/fonts.html#font-shorthand
p { font: 12px/14px sans-serif }
Thank you,
--Jay Cornell