Re: Anchors and Background-Color

On Sun, 24 Sep 2006, Justin Fortier wrote:

> If you declare a background-color as "transparent" it will still give you the 
> following warning:
> Line : 13 (Level : 1) You have no background-color with your color : a:link

That's intentional, since transparent is not a color. If you set an 
element's background to transparent, then the element's content will 
appear on its parent element's background. This in turn is determined in 
the cascade. Think what happens if you set
   p { color: black; background: transparent; }
and the user style sheet contains
   body { color: white; background: black; }

> even though your documentation suggests that this is correct.

It's "correct" in the sense of not violating are requirement in the 
specifications, just as font-size: 1px or p { color: black; background: 
black } is. That's why the message is a warning, not an error message.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Monday, 25 September 2006 04:07:08 UTC