Re: CSS Validator complains about background-color -- but it's set!

On 11/5/05, Aaron Gyes <floam@sh.nu> wrote:
>
>
> >       * Line : 18 (Level : 1) You have no background-color with your
> >         color : #footer
> >       * Line : 25 (Level : 1) You have no background-color with your
> >         color : #footer a
> >       * Line : 30 (Level : 1) You have no background-color with your
> >         color : #footer a:hover
> >       * Line : 53 (Level : 1) You have no background-color with your
> >         color : :visited
> >       * Line : 53 (Level : 1) You have no background-color with your
> >         color : :visited
> >       * Line : 60 (Level : 1) You have no background-color with your
> >         color : :visited:hover
> >       * Line : 60 (Level : 1) You have no background-color with your
> >         color : :visited:hover
> >       * Line : 60 (Level : 1) You have no background-color with your
> >         color : :visited:hover
> >       * Line : 71 (Level : 1) You have no background-color with your
> >         color : h2
> >       * Line : 77 (Level : 1) You have no background-color with your
> >         color : h3
> >       * Line : 94 (Level : 1) You have no background-color with your
> >         color : caption
>
> But then scroll down:
>
> h2 {
>      * color : #440000;
>      * background-color : transparent;
>      * font-size : 1.25em;
> }
>  * h3 {
>      * color : #440000;
>      * background-color : transparent;
>      * font-size : 1em;
>      * margin : 0.5em 0;
> }
>
> It appears that it has been able to parse it, so what's the issue?
>
> Aaron Gyes
>

The short answer is, even though 'transparent' is valid css, the
validator has been made to complain about it because a couple people
feel its bad style to use it rather than a set color.

Have a look through last month's archives for full discussion:
http://lists.w3.org/Archives/Public/www-validator-css/2005Oct/thread.html

Received on Sunday, 6 November 2005 05:46:56 UTC