On 16/06/06, Richard Allsebrook <[EMAIL PROTECTED]> wrote:
>  > Actually, its the exact opposite.

> Um, no its not. The validator doesn't take the cascade into account.

Please read what I said - you have to account for the user style sheet
and browser default stylesheet too.

> div.test {
>         background: #FFF;
>         color: #000;
> }
>
> div.test a {
>         color: #C00;
> }

And in the user stylesheet:

div {
  background-color: #C00 !important;
  color: white !important;
}

> will produce a warning on the div.test a {} rule even though the red
> hyperlink will only ever be displayed on a white background.

And the red hyperlink will be displayed on a red background.

-- 
David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to