Repository navigation
What's Changed
Bug Fixes
-
Fix specificity comparison for selector lists /
:is()by @spokodev in #87specificityToNumber()now weights the ID column bybase²(wasbase << 1), so each specificity component occupies its own positional "digit". This fixes incorrect comparisons where a lower-category count could overflow into a higher category — e.g. picking the most specific argument of:is()/ a selector list now follows proper lexicographic ordering of[ID, class, type]. The internalbasepassed when ranking list arguments was also bumped tobase + 1to guarantee no column can overflow into the next.
New Contributors
Full Changelog: v1.2.2...v1.2.3