WPT
wpt / css / selectors / has-specificity.html
Spec: Selectors ↗
Runs: Chrome 155.0.8040.0 (wpt@476394464, 2026-09-03) | Firefox 157.0a1 (wpt@476394464, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-a7825 (wpt@a1e944e7a, 2026-09-03) | Servo Servo 0.6 (wpt@7e3d005d7, 2026-09-03) | Blitz a50cb8971 (wpt@a95401e4e, 2026-09-03)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 8/8 | 8/8 | 8/8 | 8/8 | 1/8 | 1/8 |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| :has(#foo) wins over :has(.foo) | PASS | PASS | PASS | PASS | FAIL | FAIL |
| :has(span#foo) wins over :has(#foo) | PASS | PASS | PASS | PASS | FAIL | FAIL |
| :has(.bar, #foo) has same specificity as :has(#foo, .bar) | PASS | PASS | PASS | PASS | FAIL | FAIL |
| :has(.bar, #foo) wins over :has(.foo, .bar) | PASS | PASS | PASS | PASS | FAIL | FAIL |
| :has(span + span) wins over :has(span) | PASS | PASS | PASS | PASS | FAIL | FAIL |
| :has(span, li, p) wins over :has(span, lo, p) | PASS | PASS | PASS | PASS | FAIL | FAIL |
| latter .baz wins over :has(.foo) | PASS | PASS | PASS | PASS | PASS | PASS |
| latter :has(.foo) wins over .baz | PASS | PASS | PASS | PASS | FAIL | FAIL |