LearnBoost/juice — pull request #1 by arian (2011-10-09 23:26:44+00:00)
Title: Improve CSS specificity determination

See this comment: https://github.com/LearnBoost/juice/commit/90330700

Basically this adds support for the `:not()` pseudo and for comma separated selectors.
My version converted everything to numbers instead of arrays (which is easier to compare), so I had to adjust it a bit.

I didn't ran your tests, don't looked how to get all the tests running, but it should work. More tests can be found here: https://github.com/arian/DOM/blob/matcher-specificity/Specs/spec/specificity.js