RE: Colors and the WCAG

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

Received on Saturday, 19 October 2002 18:05:49 UTC