Selector Specificity
selector_specificitySpecificity of one CSS selector, from Selectors Level 4. a is IDs. b is classes, attributes and pseudo-classes. c is elements and pseudo-elements. :is(), :not() and :has() use only the most specific argument. :where() is zero. :nth-child() and :nth-last-child() are one pseudo-class, plus the most specific selector after of. :host() and :host-context() add one pseudo-class plus the argument. ::slotted() adds one pseudo-element plus the argument. ::part() is one pseudo-element. A comma list returns every selector; the top numbers are the most specific, the first on a tie. against compares those numbers. At most 50 selectors in a list. Backslashes and namespaces are rejected. A bad selector is an error, not dropped. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/selector-specificity
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"selector": "<selector>"
},
"name": "selector_specificity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| against | No | ||
| selector | Yes |