Forum Moderators: not2easy
Same colors for color and background-color in two contexts #header and #footer
#header {
width : 790px;
height : 125px;
background : #630;
}
#footer {
background : url('../images/container-blur-bottom.png') no-repeat center top;
padding : 20px 0;
text-align : center;
font : 10px/1.3em Arial, sans-serif;
color : #630;
font-weight : bold;
}
.bla{background-color#fff;color:inherit}
<div id="header">
<div id="footer">
This text may not be visible
</div>
</div>
.bla {
background-color: #fff;
color: #000;
}
the style rule in question can't anticipate what the exact color is because the color changes in different contexts
If you can't anticipate what the exact color is, then there is a chance that you might inadvertently have a mix of color and background color that don't play well together.
With all that said, I agree with you that this particular warning is not useful (I've just been playing devil's advocate). In practice, I think it's extremely rare that a developer would mistakenly use a color or background color that conflicted with another nested style, and even if it did, that would be a "logic" error, not a "validity" error.