Return Receipt Your Re:[WSG] how important are validation-programs? document
Hi Soeren, That will only appear as a warning in the validator anyway, which I assume is just there as a reminder in case you've forgotten to specify an appropriate background-color which will allow enough contrast. As you've said though, in this case it obviously doesn't matter. I would just
As someone else has already said, they are only warnings. However, if you are pushing standards to clients and they view the results, it is a good idea to have no warnings or errors. Best way around this I have found is to use background-color: inherit; and the warning will be removed.
The validator will help resolve and prevent those unexpected results in your work, such as an element being the wrong colour because it's inheriting values from somewhere you hadn't anticipated. In that case, explicitly setting the colour will make sure it's set to the value you're
Soeren Mordhorst wrote: In this case my question would be: Why should I define a background-color, if the background-color that should be used is already defined in the body-element? Short answer - because the validator only checks one rule at a time. It does not remember you had already