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 3424 - Warnings are duplicated wrongly when multiple classes are given formatting
Summary: Warnings are duplicated wrongly when multiple classes are given formatting
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Other (show other bugs)
Version: CSS Validator
Hardware: PC Linux
: P2 minor
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-05 03:27 UTC by Matthew Peterson
Modified: 2008-03-27 14:18 UTC (History)
0 users

See Also:


Attachments

Description Matthew Peterson 2006-07-05 03:27:15 UTC
Lets say i have the CSS :

.rlt_l_a, .rlt_l_b {
background : white;
}

It gives the warning 
Line : 105 (Level : 1) You have no color with your background-color : .rlt_l_b
Line : 105 (Level : 1) You have no color with your background-color : .rlt_l_b

Note how it gives two warning for the two classes ( pardon me if I'm not using the right terminology for this ), but uses the same name ( rlt_l_b ) for both warnings.

Wouldn't the expected behavior be to either give just one warning or give one for each class, not twice for one of the classes ?
Comment 1 Yves Lafon 2008-03-27 14:18:07 UTC
Fixed for now, when several selectors are present for the same value set, the same value set was initialized with all the selectors instead of being duplicated. As a result, only the last selector was used in the property (see ascii art for an explication of the issue)
a b <-
| |  |
V V  |
val---

Now the value set is duplicated, but works needs to be done to duplicate all composite values (CssBackgroundCSS2 done, but needs to be done for CSS1, and other composite ones, like CssBorder).

Changes in place on http://qa-dev.w3.org:8001/css-validator/