- From: Jay Cornell <jay.cornell@gmail.com>
- Date: Thu, 3 May 2012 14:25:13 -0700
- To: www-validator-css@w3.org
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
Received on Sunday, 6 May 2012 05:25:07 UTC