W3C home > Mailing lists > Public > www-validator-css@w3.org > July 2005

Re: Errors parsing border property?

From: Kravvitz <Kravvitz@DynamicSiteSolutions.com>
Date: Wed, 20 Jul 2005 01:06:26 -0400
Message-ID: <42DDDBD2.4070200@DynamicSiteSolutions.com>
To: Robert Marcano <robert@marcanoonline.com>, www-validator-css@w3.org

The CSS validator currently validates to CSS2, not CSS2.1.

Note the differences:
http://www.w3.org/TR/REC-CSS2/box.html#propdef-border
http://www.w3.org/TR/CSS21/box.html#propdef-border

Robert Marcano wrote:
> I have found a rare error when checking my CSS.. if you go to:
> 
> http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.marcanoonline.com%2Fplog%2F&usermedium=all
> 
> The validator will say the CSS is correct, but it is showing a different
> property value on one line:
> 
> the original CSS says
> 
> .rm-postcomment  {.
>   border : 1px dashed transparent;
> }
> 
> the validator shows
> 
> .rm-postcomment  {.
>   border : 1px dashed inherit;
> }
> 
> when using the referer method to check the CSS (from my site
> http://www.marcanoonline.com/plog/ follow the CSS link at the bottom) an
> error is found:
> 
> Line: 261 Context : .rm-postcomment  
> 
> Invalid number : border Too many values or values are not recognized :
> 1px dashed transparent
> 
> 
> apparently the problem here is the "transparent" color value, but the
> CSS 2.1 spec refer to the "border-top-color" property:
> 
> http://www.w3.org/TR/CSS21/box.html#propdef-border-top-color
> 
> and it allows transparent. I use this transparent border to leave a 1px
> space where a non transparent border will be show when the element is in
> hover state, and it works in Mozilla based browsers
> 
> 
> 
> ________________________________________
> Robert Marcano
> web: http://www.marcanoonline.com/
> 
> gpg --keyserver hkp://pgp.mit.edu/ --recv-key 72A0DCFD
> 
> 
> 
> 
> 
> 
> 
Received on Wednesday, 20 July 2005 05:11:35 GMT

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