RE: Colors and the WCAG

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...

Cheers

Chaals

On Sat, 19 Oct 2002, John Foliot - bytown internet wrote:

>> If you set foreground colours but not background colours you haven't
>> specified any contrast, and have therefore failed the checkpoint, in my
>> opinion. But Joe is right that you don't need to do this for
>> every element -
>> you can use the inheritance of properties if you have set a background
>> globally and foregrounds locally or vice versa.
>>
>
>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.
>
>JF
>

-- 
Charles McCathieNevile  http://www.w3.org/People/Charles  tel: +61 409 134 136
SWAD-E http://www.w3.org/2001/sw/Europe ------------ WAI http://www.w3.org/WAI
 21 Mitchell street, FOOTSCRAY Vic 3011, Australia  fax(fr): +33 4 92 38 78 22
 W3C, 2004 Route des Lucioles, 06902 Sophia Antipolis Cedex, France

Received on Sunday, 20 October 2002 10:57:08 UTC