OK, I'll bite :-)

What is  origin, weight, and  specificity?  I hear the terms and I think I get 
it ... but, to hear it from the Master would be great.


Greg


-----Original Message-----
From: css-d-boun...@lists.css-discuss.org 
[mailto:css-d-boun...@lists.css-discuss.org] On Behalf Of Eric A. Meyer
Sent: Wednesday, October 02, 2013 6:18 AM
To: CSS-D
Subject: Re: [css-d] Two classes, two conflicting rules, which wins ?

On 1 Oct 2013, at 16:50, Robert A. Rosenberg wrote:

> So you are saying that in a 'class="c2 c1"' case, it scans the CSS 
> defs, sees .c1 and applies it, keeps going and sees .c2 which 
> overrides the c1 width?
>
> IOW: The order that you list the class in the HTML is ignored and only 
> the order that the classes are defined in the CSS defs counts.

That's correct.

(Assuming the selectors have the same origin, weight, AND specificity, that is; 
in that case, then the order the rules are listed in the CSS matters.  If two 
selectors don't have the same origin, weight, OR specificity, then the order 
they're listed in the CSS is irrelevant.)


--
Eric A. Meyer - http://meyerweb.com/
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org] 
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- 
http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to