W3C home > Mailing lists > Public > www-validator-css@w3.org > October 2007

Re: Notify a constant bug

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sat, 13 Oct 2007 20:56:01 +0300
Message-ID: <004801c80dc2$5354ebf0$0400000a@DOCENDO>
To: (wrong string) é" <thierrycavalie@yahoo.fr>, <www-validator-css@w3.org>

Thierry Cavalié wrote:

>   But when I write somewhere in my stylesheet "background-color :
> transparent" to match with this feature, in response the validator
> tell me "Vous n'avez pas de couleur de fond définie avec votre
> couleur" (that's mean in english : "you have no background color
> definite with your color").
>
>   That's realy a bug : a transparent color IS A DEFINED ONE, don't
> understand ?

No, transparent means lack of color. It means that the color or background 
image of the "underlying" (in the sense of visual stacking) color shines 
through. This color (or background image) can be just anything: it can be 
set in a user style sheet, or some other style sheet, possibly resulting in 
a clash with your foreground color.

The only safe way is to set color and background always together and to 
specific values, not using transparent or inherit. Even this isn't safe 
against badly designed user style sheets, but nothing is. But your pages are 
expected to work together with technically sound user style sheets - and 
"technically sound" means that _they_, too, always set color and background 
together -, even if their styling might look odd to you.

Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/ 
Received on Saturday, 13 October 2007 17:56:06 GMT

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