On Oct 14, 2008, at 9:17 AM, Bob Rosenberg wrote:

> ... The problem with
> the scoring (as you note) is that if the first had one one ul, both
> would score 101 and hierarchy in theory need to come into play to
> select. If I remember correctly, the order of encounter of the rules
> is what ends up getting used as the tie-breaker in the case of
> duplicate scores (ie: Either the first or last winning rule). A
> better method (at least for tie-breaking if not specificity) is to
> use the hierarchy (ie: Which one is included in the range covered by
> the other as if they were nested SPANs).

The only hierarchy that comes into play is the order in which the  
selectors appear in the stylesheet. Given equal specificity (tie- 
breaker), the last selector (in the structure of the stylesheet) wins.

Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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