This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 8867 - Unnecessary warning "You have no color set"
Summary: Unnecessary warning "You have no color set"
Status: ASSIGNED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.1 (show other bugs)
Version: CSS Validator
Hardware: PC Windows XP
: P2 enhancement
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://environmentalchemistry.com/con...
Whiteboard:
Keywords: Disagree, Usability
Depends on:
Blocks:
 
Reported: 2010-02-02 23:11 UTC by Ken Barbalace
Modified: 2012-09-21 14:22 UTC (History)
2 users (show)

See Also:


Attachments

Description Ken Barbalace 2010-02-02 23:11:39 UTC
Within the last few months (don't know exactly when) a new warning has started to appear that states when one sets the "background-color" to some color and sets "color" to "inherit":

"You have no color set (or color is set to transparent) but you have set a background-color."

In the past if I defined a background-color, as long as I also defined "color:inherit" the warning would go away (as it should). This is no longer the case, now even with color set to inherit I get the warning, which is really annoying.

If I set "color:inherit" when I define background-color I am implicitly setting a color and acknowledging that if one is defined the other must also be considered to prevent any conflicts, thus there should be no warning. It is up to me to make sure I don't cause a conflict in this case.

What makes this warning so annoying is that it generates so many unnecessary warnings that they can bury legitimate warnings that really do need to be looked at. Please revert back to the old behavior such that if background-color and color are set and one of them uses "inherit", don't generate a warning.

I try very hard to keep my pages error and warning free, however, in order to get rid of this warning I would have to increase the number of style rules and use inefficient selectors as using "inherit" currently allows me to define the color or background-color higher up and which can allow for different color/background-color depending on the context even if I explicitly define the other at a lower level.

Thanks,
Comment 1 Yann Hamon 2012-08-02 20:10:11 UTC
Hello, I, too, am having this bug - so it seems to still be around.

I am using the unicorn validation plugin for jenkins (https://wiki.jenkins-ci.org/display/JENKINS/Unicorn+Validation+Plugin ) and this bug makes a lot of its goodness go away :)

The number of warnings seems to be random, between 0 and 2 in my case - I've also been unable to find a workaround.

Thanks