Forum Moderators: not2easy
However after doing a couple quick tests I also discovered that if you set the background-color and color to the same color you will not get a warning.
While I may have used a class at some point that had the same background-color and color I eventually found other methods to achieve the same goals. It's my view that a warning should still occur specifically for those who fail to set a background value (a color, transparent, or otherwise) or vice versa with color.
- John
[jigsaw.w3.org...]
[jigsaw.w3.org...]
The warnings about colors and redefinitions IMHO are rather lame and fixing them leads to bloated code.
main problem with having them IMHO is that people learn to ignore the other warnings just as well.
Remember, they're warnings, not errors.
What's the point in the warning?
Well, if you set your background to transparent, you're saying "permit what's behind this background colour to affect the readability of this element and its foreground colour".
The reasoning behind setting a background to transparent is pretty much always the same: I have an image in an element behind this one, and I want that to show through.
This could potentially be bad, because of its accessibility issues, like what if someone has images turned off, and the resulting back- and fore-ground combination becomes illegible? Or what if the image, with its change in difference in brightness, and difference in colour (two specifications outlined by the W3C to determine safe legibility) makes it unreadable to a person say, with protanopia?
And what's the reasoning behind setting a background colour the same as a foreground colour?
I can't see any reason behind doing this, besides trying to up keyword hits, or making easter eggs.
So I don't believe the purpose of the text is to really be accessible in that case, regardless of its (if any) merit.
So why bother reading the warning at all?
I'd check if:
Now, while the validator doesn't flag warnings in all the right areas for all the right reasons, but the different W3C specifications tell you a whole bunch of reasons that apply to them.
[edited by: Setek at 12:51 am (utc) on Jan. 8, 2007]