keeganstreet / specificity

A JavaScript module for calculating the specificity of CSS selectors
MIT License
624 stars 39 forks source link

:not Pseudo-Class not recognized #27

Closed TechTrain closed 7 years ago

TechTrain commented 7 years ago

It seems that the :not() pseudo-class is not being picked up by the calculator. Has the calculator been updated to account for the Selectors L3 standard?

keeganstreet commented 7 years ago

Hi @TechTrain, sorry for the late reply. Yes the calculator does support the negation pseudo-class. You can see an example at http://specificity.keegan.st. For example paste in a selector like li:not(.class).