Sent by Bruno Fassino on 8 February 2005 15:03
Jens Brueckmann wrote:
[...]
> Thus I wrote a small testcase with 21 nested lists (Opera users beware!
> Rendering is extremely slow):
> http://www.j-a-b.net/tmp/specificity.html
>
> Firefox and Internet Explorer handle values of a,b, and c separately,
> meaning the selector which consists entirely of elements has a specificity
> of 0,0,44 in my testcase and the class selector has a specificity of 0,1,2
> In both browsers the style rule of the class selector is applied.
>
> Opera seems to simply add all values leading to specificities 044 and 012.
> Here the style rule of the multiple elements selector is applied.
John Lewis has clearly explained that "0,0,44" should not win over "0,1,2"
This looks like a bug in Opera. I tested with nested divs, and indeed I
found that a selector with 26 elements (specificity 0,0,0,26) wins over one
with a class and one elements (specificity 0,0,1,1) which is _not_ correct.
The spec says that the four numbers should be "concatenated in a number
system with a large base", but doesn't specifity how large this base should
be.
Anyway I don't think this is a big problem...
Bruno
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/