The negation pseudo-class and Specificity

.wrap p - 011

.wrap p+p - 012

.wrap p+p+p - 013

.wrap p+p+p+p - 014

.wrap p+p+p+p+p - 015

.wrap p+p+p+p+p+p - 016

.wrap p+p+p+p+p+p+p - 017

.wrap p+p+p+p+p+p+p+p - 018

.wrap p+p+p+p+p+p+p+p+p - 019

.wrap p+p+p+p+p+p+p+p+p+p - 020

Specificity of Selectors
SelectorSpec.FilterGecko 1.7~1.9, Opera 9.5 and Safari 3 (beta)
.wrap p011p:not([xxxx])011
.wrap p+p+p+p+p+p+p+p+p+p020p+p+p+p+p+p+p+p+p+p:not([xxxx])020

Conclusion

This is a test on the specificity of selector with a negation pseudo-class. Safari 3 (beta) treats the negation :not([xxxx]) with a specificity of 020.

Other test with Selectors

Thanks

  1. Philippe Wittenbergh for checking and helping me with specificity issues