Version: 0.1.2 Axioma Tools
Computes CSS specificity per W3C Selectors Level 4.
bash
python3 axiom_css_specificity.py "body div#main .item:first-child"
python3 axiom_css_specificity.py --compare "a" "div.menu a"
python
from axiom_css_specificity import compute_specificity
compute_specificity('div#main a:hover') # (0, 2, 2)
CheckStatusUnit tests18 casesPerformance<100msSecurityPure stdlib, no injectionDeterminismByte-to-byte stableLicenseApache-2.0
Last updated: 2026-06-14