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

Re: Numeric values not recognized for font-weight

From: Yves Lafon <ylafon@w3.org>
Date: Mon, 26 Mar 2012 05:16:44 -0400 (EDT)
To: "Jukka K. Korpela" <jukka.k.korpela@kolumbus.fi>
cc: www-validator-css@w3.org
Message-ID: <alpine.DEB.1.10.1203260502400.11049@wnl.j3.bet>
On Sat, 17 Mar 2012, Jukka K. Korpela wrote:

> Example: using default settings, direct input of
>
> h2 { font-weight: 600; }
>
> causes the error message
>
> Value Error : font-weight 600 is not a font-weight value : 600
>
> This seems to happen for all numeric values, i.e. only keyword values like 
> bold are accepted for font-weight. Happens in checking via URL too, and when 
> using CSS level 3.
>
> So it looks like a bug in the routine for parsing font-weight value.

Yes, this is a bug introduced by a modification of the way numbers are 
handled. Good that we are adding unit tests for that (not complete yet, so 
thank you for the heads-up!)

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

         ~~Yves
Received on Monday, 26 March 2012 09:16:47 GMT

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