W3C home > Mailing lists > Public > www-validator-css@w3.org > December 2006

Re: CSS validator bugs

From: olivier Thereaux <ot@zoy.org>
Date: Tue, 5 Dec 2006 14:44:24 +0900
Message-Id: <3DEDDB8C-4E6C-4EB6-9BF1-1E9833F7031A@w3.org>
Cc: www-validator-css@w3.org
To: Matt Bower <mbower@learningchange.com>

Hi Matt,

Thank you for your message.

On Dec 5, 2006, at 07:20 , Matt Bower wrote:
> I've accumulated a few CSS validator bugs that I think need to be  
> addressed:
>
>  using line-height with only an integer throws an error (CSS: line- 
> height: 1; ERROR: Invalid number : line-height Parse Error - [empty  
> string]). Converting to a floating point number (line-height: 1.0;)  
> fixes. Should be able to accept integers without a decimal.

I think this has been fixed in CVS per
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2272
and should be in the production server some time in the weeks to  
come, when we sync the service with the development code.

>  "transparent" is not allowed in border shorthand declaration  
> (CSS: border: 1px solid transparent; ERROR: Invalid number : border  
> transparent is not a color value : 1px solid transparent).  
> "transparent" is however accepted as part of border-color:  
> transparent;

This is consistent with the CSS2 recommendation. If you want to use  
transparent in the border shorthand value, validate your stylesheets  
with the CSS 2.1 profile.

(CSS 2.1 is not the default profile for CSS yet, as it is still a  
working draft.


>  "inline-block" is not a recognized value for display (CSS:  
> display: inline-block; ERROR: Invalid number : display inline-block  
> is not a display value : inline-block). To my knowledge, inline- 
> block is acceptable despite that not all browsers recognize it.

ditto the above, this is in CSS 2.1
http://www.w3.org/TR/CSS2/visuren.html#display-prop
http://www.w3.org/TR/CSS21/visuren.html#display-prop

You can use the css 2.1 profile by setting it up in the validator's  
options.

regards,
olivier
-- 
olivier Thereaux - W3C - http://www.w3.org/People/olivier/
W3C Open Source Software: http://www.w3.org/Status
Received on Tuesday, 5 December 2006 05:51:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:19:07 UTC