Install
openclaw skills install axiom-css-specificityCSS specificity calculator — compute (a, b, c) specificity for any CSS selector. Handles :is(), :not(), :where(), combinators, attribute selectors. Use when you need to debug CSS conflicts. Pure stdlib, no LLM.
openclaw skills install axiom-css-specificityVersion: 0.1.2 Axioma Tools
Computes CSS specificity per W3C Selectors Level 4.
python3 axiom_css_specificity.py "body div#main .item:first-child"
python3 axiom_css_specificity.py --compare "a" "div.menu a"
from axiom_css_specificity import compute_specificity
compute_specificity('div#main a:hover') # (0, 2, 2)
| Check | Status |
|---|---|
| Unit tests | 18 cases |
| Performance | <100ms |
| Security | Pure stdlib, no injection |
| Determinism | Byte-to-byte stable |
| License | Apache-2.0 |
Last updated: 2026-06-14