View Single Post
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2005-11-21, 19:08

Quote:
Originally Posted by drewprops
Since when are warnings issued for "not having a background-color with your color"? I had a ton of those that popped up when trying to validate a recent website... obviously I'm ignorant of the specs for CSS validation
They're warnings, not errors. The rationale is as follows: some people like to use custom stylesheets (Safari offers this under Advanced Preferences), overriding various settings, most notably colors and font sizes. If a color is overwritten, but a background color is not, a part of your page may become unreadable.

Example: you define a color of black. Some user, however, likes reading text white on black, and ends up overriding the color to "white". Since you didn't define a background color, however, the browser inherits something, which could be something bright, even white. White on white is, well, not legible.

Therefore, defining colors in pairs with background colors is strongly encouraged, but not required.
  quote