W3C home > Mailing lists > Public > www-validator-css@w3.org > June 2012

Re: Font shorthand not validating

From: Yves Lafon <ylafon@w3.org>
Date: Mon, 4 Jun 2012 10:39:15 -0400 (EDT)
To: Jay Cornell <jay.cornell@gmail.com>
cc: www-validator-css@w3.org
Message-ID: <alpine.DEB.1.10.1206041038430.31858@wnl.j3.bet>
On Thu, 3 May 2012, Jay Cornell wrote:

> 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 }
>

Yes, the parsing is broken, font-* is next on the line for a major 
lifting.
Cheers,

>
>
> Thank you,
>
> --Jay Cornell
>
>
>

-- 
Baroula que barouleras, au tiéu toujou t'entourneras.

         ~~Yves
Received on Monday, 4 June 2012 14:44:14 GMT

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