CSS selector specificity
Compare selector ABC specificity, including nested is, where and not.
- Runs in your browser
- No upload
- Check before download
Inputs stay in this tab and are not uploaded or saved automatically. Optional aggregate usage counts and coarse processing diagnostics are sent only after consent, without input content or filenames. Clearing or closing loses inputs; save needed outputs first.
Resource limits
Selectors Level 4 ABC values are compared lexicographically, not as decimal scores. is, not and has take the largest argument, and where counts as zero. nth-child with of adds the maximum of its argument. Up to 64 selectors, 8192 UTF-8 bytes each, depth 24 and 4096 AST nodes; unsupported pseudo-functions fail with a clear message. There is no element matching here. This is a local, bounded preview, not a universal guarantee for every browser or layout. Inputs are never executed. Download HTML and CSS together. Watchdog: 8 seconds.
How to use
- Configure the example
Enter one selector or selector list in each field. Add comparisons, generate, and read A/B/C and the rank. Each comma-separated branch gets its own row; equal ranks are ties.
- Inspect before using
Inputs stay in this tab and are not uploaded or saved automatically. Optional aggregate usage counts and coarse processing diagnostics are sent only after consent, without input content or filenames. Clearing or closing loses inputs; save needed outputs first. Selectors Level 4 ABC values are compared lexicographically, not as decimal scores. is, not and has take the largest argument, and where counts as zero. nth-child with of adds the maximum of its argument. Up to 64 selectors, 8192 UTF-8 bytes each, depth 24 and 4096 AST nodes; unsupported pseudo-functions fail with a clear message. There is no element matching here. This is a local, bounded preview, not a universal guarantee for every browser or layout. Inputs are never executed. Download HTML and CSS together. Watchdog: 8 seconds.
- Export the checked result
Download result; Download original
Questions and limits
Resource limits
Selectors Level 4 ABC values are compared lexicographically, not as decimal scores. is, not and has take the largest argument, and where counts as zero. nth-child with of adds the maximum of its argument. Up to 64 selectors, 8192 UTF-8 bytes each, depth 24 and 4096 AST nodes; unsupported pseudo-functions fail with a clear message. There is no element matching here. This is a local, bounded preview, not a universal guarantee for every browser or layout. Inputs are never executed. Download HTML and CSS together. Watchdog: 8 seconds.
Offline design
Inputs stay in this tab and are not uploaded or saved automatically. Optional aggregate usage counts and coarse processing diagnostics are sent only after consent, without input content or filenames. Clearing or closing loses inputs; save needed outputs first.
Inspect before using
Enter one selector or selector list in each field. Add comparisons, generate, and read A/B/C and the rank. Each comma-separated branch gets its own row; equal ranks are ties.