Status: FAIL | Duration: 117ms | Subtests: 0/182 | Open test on wpt.live | wpt.fyi
Data from commit:
1884860 Copy-on-write style attribute blocks that are in the rule tree (#831) (2026-09-02)
| Subtest | Status | Message |
|---|---|---|
| <h1 data-expect-match="1" /> :heading | FAIL | ":heading" is not a valid selector |
| <h1 data-expect-match="1" /> :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <h1 data-expect-match="1" /> :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <h1 data-expect-match="1" /> :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <h1 data-expect-match="1" /> :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <h1 data-expect-match="1" /> :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <h1 data-expect-match="1" /> :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <h1 data-expect-match="1" /> :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <h1 data-expect-match="1" /> :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <h1 data-expect-match="1" /> :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <h1 data-expect-match="1" /> :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <h1 data-expect-match="1" /> :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <h1 data-expect-match="1" /> :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
| <h2 data-expect-match="2" /> :heading | FAIL | ":heading" is not a valid selector |
| <h2 data-expect-match="2" /> :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <h2 data-expect-match="2" /> :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <h2 data-expect-match="2" /> :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <h2 data-expect-match="2" /> :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <h2 data-expect-match="2" /> :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <h2 data-expect-match="2" /> :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <h2 data-expect-match="2" /> :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <h2 data-expect-match="2" /> :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <h2 data-expect-match="2" /> :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <h2 data-expect-match="2" /> :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <h2 data-expect-match="2" /> :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <h2 data-expect-match="2" /> :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
| <h3 data-expect-match="3" /> :heading | FAIL | ":heading" is not a valid selector |
| <h3 data-expect-match="3" /> :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <h3 data-expect-match="3" /> :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <h3 data-expect-match="3" /> :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <h3 data-expect-match="3" /> :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <h3 data-expect-match="3" /> :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <h3 data-expect-match="3" /> :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <h3 data-expect-match="3" /> :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <h3 data-expect-match="3" /> :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <h3 data-expect-match="3" /> :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <h3 data-expect-match="3" /> :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <h3 data-expect-match="3" /> :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <h3 data-expect-match="3" /> :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
| <h4 data-expect-match="4" /> :heading | FAIL | ":heading" is not a valid selector |
| <h4 data-expect-match="4" /> :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <h4 data-expect-match="4" /> :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <h4 data-expect-match="4" /> :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <h4 data-expect-match="4" /> :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <h4 data-expect-match="4" /> :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <h4 data-expect-match="4" /> :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <h4 data-expect-match="4" /> :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <h4 data-expect-match="4" /> :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <h4 data-expect-match="4" /> :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <h4 data-expect-match="4" /> :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <h4 data-expect-match="4" /> :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <h4 data-expect-match="4" /> :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
| <h5 data-expect-match="5" /> :heading | FAIL | ":heading" is not a valid selector |
| <h5 data-expect-match="5" /> :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <h5 data-expect-match="5" /> :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <h5 data-expect-match="5" /> :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <h5 data-expect-match="5" /> :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <h5 data-expect-match="5" /> :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <h5 data-expect-match="5" /> :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <h5 data-expect-match="5" /> :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <h5 data-expect-match="5" /> :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <h5 data-expect-match="5" /> :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <h5 data-expect-match="5" /> :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <h5 data-expect-match="5" /> :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <h5 data-expect-match="5" /> :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
| <h6 data-expect-match="6" /> :heading | FAIL | ":heading" is not a valid selector |
| <h6 data-expect-match="6" /> :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <h6 data-expect-match="6" /> :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <h6 data-expect-match="6" /> :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <h6 data-expect-match="6" /> :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <h6 data-expect-match="6" /> :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <h6 data-expect-match="6" /> :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <h6 data-expect-match="6" /> :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <h6 data-expect-match="6" /> :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <h6 data-expect-match="6" /> :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <h6 data-expect-match="6" /> :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <h6 data-expect-match="6" /> :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <h6 data-expect-match="6" /> :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
| <h7 data-expect-match="" /> :heading | FAIL | ":heading" is not a valid selector |
| <h7 data-expect-match="" /> :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <h7 data-expect-match="" /> :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <h7 data-expect-match="" /> :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <h7 data-expect-match="" /> :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <h7 data-expect-match="" /> :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <h7 data-expect-match="" /> :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <h7 data-expect-match="" /> :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <h7 data-expect-match="" /> :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <h7 data-expect-match="" /> :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <h7 data-expect-match="" /> :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <h7 data-expect-match="" /> :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <h7 data-expect-match="" /> :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
| <h8 data-expect-match="" /> :heading | FAIL | ":heading" is not a valid selector |
| <h8 data-expect-match="" /> :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <h8 data-expect-match="" /> :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <h8 data-expect-match="" /> :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <h8 data-expect-match="" /> :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <h8 data-expect-match="" /> :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <h8 data-expect-match="" /> :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <h8 data-expect-match="" /> :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <h8 data-expect-match="" /> :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <h8 data-expect-match="" /> :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <h8 data-expect-match="" /> :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <h8 data-expect-match="" /> :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <h8 data-expect-match="" /> :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
| <h9 data-expect-match="" /> :heading | FAIL | ":heading" is not a valid selector |
| <h9 data-expect-match="" /> :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <h9 data-expect-match="" /> :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <h9 data-expect-match="" /> :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <h9 data-expect-match="" /> :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <h9 data-expect-match="" /> :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <h9 data-expect-match="" /> :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <h9 data-expect-match="" /> :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <h9 data-expect-match="" /> :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <h9 data-expect-match="" /> :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <h9 data-expect-match="" /> :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <h9 data-expect-match="" /> :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <h9 data-expect-match="" /> :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
| <h0 data-expect-match="" /> :heading | FAIL | ":heading" is not a valid selector |
| <h0 data-expect-match="" /> :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <h0 data-expect-match="" /> :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <h0 data-expect-match="" /> :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <h0 data-expect-match="" /> :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <h0 data-expect-match="" /> :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <h0 data-expect-match="" /> :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <h0 data-expect-match="" /> :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <h0 data-expect-match="" /> :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <h0 data-expect-match="" /> :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <h0 data-expect-match="" /> :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <h0 data-expect-match="" /> :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <h0 data-expect-match="" /> :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
| <h1 data-expect-match="1" aria-level="2" /> :heading | FAIL | ":heading" is not a valid selector |
| <h1 data-expect-match="1" aria-level="2" /> :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <h1 data-expect-match="1" aria-level="2" /> :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <h1 data-expect-match="1" aria-level="2" /> :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <h1 data-expect-match="1" aria-level="2" /> :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <h1 data-expect-match="1" aria-level="2" /> :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <h1 data-expect-match="1" aria-level="2" /> :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <h1 data-expect-match="1" aria-level="2" /> :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <h1 data-expect-match="1" aria-level="2" /> :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <h1 data-expect-match="1" aria-level="2" /> :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <h1 data-expect-match="1" aria-level="2" /> :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <h1 data-expect-match="1" aria-level="2" /> :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <h1 data-expect-match="1" aria-level="2" /> :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
| <h1 data-expect-match="1" /> in section :heading | FAIL | ":heading" is not a valid selector |
| <h1 data-expect-match="1" /> in section :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <h1 data-expect-match="1" /> in section :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <h1 data-expect-match="1" /> in section :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <h1 data-expect-match="1" /> in section :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <h1 data-expect-match="1" /> in section :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <h1 data-expect-match="1" /> in section :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <h1 data-expect-match="1" /> in section :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <h1 data-expect-match="1" /> in section :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <h1 data-expect-match="1" /> in section :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <h1 data-expect-match="1" /> in section :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <h1 data-expect-match="1" /> in section :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <h1 data-expect-match="1" /> in section :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
| <hgroup data-expect-match="" /> :heading | FAIL | ":heading" is not a valid selector |
| <hgroup data-expect-match="" /> :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <hgroup data-expect-match="" /> :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <hgroup data-expect-match="" /> :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <hgroup data-expect-match="" /> :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <hgroup data-expect-match="" /> :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <hgroup data-expect-match="" /> :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <hgroup data-expect-match="" /> :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <hgroup data-expect-match="" /> :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <hgroup data-expect-match="" /> :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <hgroup data-expect-match="" /> :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <hgroup data-expect-match="" /> :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <hgroup data-expect-match="" /> :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
| <p role="heading" aria-level="1" data-expect-match="" /> :heading | FAIL | ":heading" is not a valid selector |
| <p role="heading" aria-level="1" data-expect-match="" /> :heading(1) | FAIL | ":heading(1)" is not a valid selector |
| <p role="heading" aria-level="1" data-expect-match="" /> :heading(2) | FAIL | ":heading(2)" is not a valid selector |
| <p role="heading" aria-level="1" data-expect-match="" /> :heading(3) | FAIL | ":heading(3)" is not a valid selector |
| <p role="heading" aria-level="1" data-expect-match="" /> :heading(4) | FAIL | ":heading(4)" is not a valid selector |
| <p role="heading" aria-level="1" data-expect-match="" /> :heading(5) | FAIL | ":heading(5)" is not a valid selector |
| <p role="heading" aria-level="1" data-expect-match="" /> :heading(6) | FAIL | ":heading(6)" is not a valid selector |
| <p role="heading" aria-level="1" data-expect-match="" /> :heading(7) | FAIL | ":heading(7)" is not a valid selector |
| <p role="heading" aria-level="1" data-expect-match="" /> :heading(8) | FAIL | ":heading(8)" is not a valid selector |
| <p role="heading" aria-level="1" data-expect-match="" /> :heading(9) | FAIL | ":heading(9)" is not a valid selector |
| <p role="heading" aria-level="1" data-expect-match="" /> :heading(0) | FAIL | ":heading(0)" is not a valid selector |
| <p role="heading" aria-level="1" data-expect-match="" /> :heading(0, 1, 2) | FAIL | ":heading(0, 1, 2)" is not a valid selector |
| <p role="heading" aria-level="1" data-expect-match="" /> :heading(6, 7) | FAIL | ":heading(6, 7)" is not a valid selector |
<!doctype html> <meta charset=utf-8> <title>:heading and :heading() pseudo-classes</title> <link rel="help" href="https://drafts.csswg.org/selectors-5/#headings"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <h1 data-expect-match="1"></h1> <h2 data-expect-match="2"></h2> <h3 data-expect-match="3"></h3> <h4 data-expect-match="4"></h4> <h5 data-expect-match="5"></h5> <h6 data-expect-match="6"></h6> <h7 data-expect-match=""></h7> <h8 data-expect-match=""></h8> <h9 data-expect-match=""></h9> <h0 data-expect-match=""></h0> <h1 data-expect-match="1" aria-level="2"></h1> <section><h1 data-expect-match="1"></h1></section> <hgroup data-expect-match=""></hgroup> <p role="heading" aria-level="1" data-expect-match=""></p> <script> const els = document.querySelectorAll('[data-expect-match]'); const tests = [ {args: ['1'], match: [1]}, {args: ['2'], match: [2]}, {args: ['3'], match: [3]}, {args: ['4'], match: [4]}, {args: ['5'], match: [5]}, {args: ['6'], match: [6]}, {args: ['7'], match: []}, {args: ['8'], match: []}, {args: ['9'], match: []}, {args: ['0'], match: []}, {args: ['0', '1', '2'], match: [1, 2]}, {args: ['6', '7'], match: [6]}, ]; for (const el of els) { const testName = el.outerHTML + (el.parentNode === document.body ? '' : ' in ' + el.parentNode.localName); test(() => { const matches = el.matches(':heading'); const shouldMatch = el.dataset.expectMatch !== ""; assert_equals(matches, shouldMatch); }, testName + ' :heading'); for (const t of tests) { const selector = `:heading(${t.args.join(', ')})`; test(() => { const matches = el.matches(selector); const expectMatchLevel = parseInt(el.dataset.expectMatch, 10); const shouldMatch = t.match.includes(expectMatchLevel); assert_equals(matches, shouldMatch, selector); }, testName + ' ' + selector); } } </script>