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

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

From: Cyber Dog <cyberdog3k@gmail.com>
Date: Sun, 6 Nov 2005 00:46:51 -0500
Message-ID: <cbb8f04c0511052146rdbf2a08o11a1bb7ec390fd2f@mail.gmail.com>
To: Aaron Gyes <floam@sh.nu>
Cc: www-validator-css@w3.org

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 GMT

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