keeganstreet / specificity

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

Add validate function #32

Closed jimbo closed 7 years ago

jimbo commented 7 years ago

As described in #31, I wrote a function to validate a selector against a specificity array representing some max specificity. I'd be happy to incorporate feedback.

@keeganstreet

keeganstreet commented 7 years ago

Closing as per comment on #31.