Jens Brueckmann wrote:
> Thus I wrote a small testcase with 21 nested lists (Opera users beware!
> Rendering is extremely slow):
> 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
Anyway I don't think this is a big problem...
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/