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 and Opera 9.5FilterSafari 3 (beta)
.wrap p011p:not([xxxx])011p:not(div)002
.wrap p+p+p+p+p+p+p+p+p+p020p+p+p+p+p+p+p+p+p+p:not([xxxx])020p+p+p+p+p+p+p+p+p+p:not(div)011

Conclusion

This is a test on the specificity of selector with a negation pseudo-class. What can be concluded is that Safari 3 (beta) treats the negation :not(div) with a specificity of 010 instead of 001.

Other test with Selectors

Thanks

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