w3c / Unicorn

Unicorn - W3C's Unified Validator
https://validator.w3.org/unicorn/
Other
127 stars 59 forks source link

No background-color / color set warning for a multiply-declared class #130

Closed vivienlacourba closed 8 years ago

vivienlacourba commented 8 years ago

Reported by anonymous on 27 Aug 2010 07:15 UTC I am noticing a problem with a warning concerning unset colours for multiple declarations of the same class. If I set a 'background-color' in the first declaration and a 'color' in the second, then it's pretty likely that I've already "[sure" that "the colors keep the text reasonably legible". I don't believe this is intentional, is it?

Here's a simplified example:

.class-a, .class-b, .class-c { color: #000 }
.class-a { background-color: #FFF }
.class-b { background-color: #CCC }
.class-c { background-color: #999 }

I get warnings for the second declarations but not the first, interestingly.

vivienlacourba commented 8 years ago

Comment by tgambet on 7 Sep 2010 17:38 UTC I have forwarded this issue on the www-validator-css@w3.org, the mailing list of the css-validator.