RE: Colors and the WCAG

>On Sat, 19 Oct 2002, John Foliot - bytown internet wrote:
>
> >Actually, if you set a color to an element in your style sheet but not a
> >background color it will return as a warning from the W3C CSS validator
> >(http://jigsaw.w3.org/css-validator/).  While not *wrong* you should be
> >setting both attributes to an element.


At 10:57 20/10/2002 -0400, Charles McCathieNevile wrote:
>No, the validator should be smarter and work out whether this is a problem 
>or
>not. But that is a non-trivial piece of work involving parsing both the 
>style
>sheet and the document. For testing HTML it's easier than it is for SVG...

Isn't the point the validator _can't_ know if its a problem or not? If the 
author stylesheet has foo {background-color: red} and a user stylesheet has 
foo {color: red} then foo type elements will be unreadable.

Andrew

--
Andrew McFarland
UNITE Solutions
http://www.unite.net/

Received on Monday, 21 October 2002 03:31:22 UTC