css/selectors/parsing/
378 / 381 WPT subtests passing
- Failed
- 3
- Timed out
- 0
- Not run
- 0
- Test files
- 21
- Blocking files
- 0
Chrome 342 / 381 WPT subtests passing on the same files, 1 blocking
Tests
21 test files hereEach test file opens in place to its subtests, and each subtest that did not pass to its message.
Test fileSubtests passingChromeFailedStanding
invalid-pseudos.html 12 / 12 passingChrome 10 / 120 failedClean
12 passing subtests
- ":-internal-animating-full-screen-transition" should be an invalid selector
- ":-internal-fullscreen-document" should be an invalid selector
- ":-internal-html-document" should be an invalid selector
- ":-internal-media-document" should be an invalid selector
- ":-khtml-drag" should be an invalid selector
- ":-webkit-animating-full-screen-transition" should be an invalid selector
- ":-webkit-full-page-media" should be an invalid selector
- ":-webkit-full-screen-ancestor" should be an invalid selector
- ":-webkit-full-screen-controls-hidden" should be an invalid selector
- ":-webkit-full-screen-document" should be an invalid selector
- "::-apple-attachment-controls-container" should be an invalid selector
- "::-internal-loading-auto-fill-button" should be an invalid selector
parse-anplusb.html 112 / 112 passingChrome 112 / 1120 failedClean
112 passing subtests
- :nth-child(1n+0) should be parsed and serialized correctly
- :nth-child(n+0) should be parsed and serialized correctly
- :nth-child(n) should be parsed and serialized correctly
- :nth-child(-n+0) should be parsed and serialized correctly
- :nth-child(-n) should be parsed and serialized correctly
- :nth-child(N) should be parsed and serialized correctly
- :nth-child(+n+3) should be parsed and serialized correctly
- :nth-child( +n + 7 ) should be parsed and serialized correctly
- :nth-child( N- 123) should be parsed and serialized correctly
- :nth-child(n- 10) should be parsed and serialized correctly
- :nth-child(-n - 1) should be parsed and serialized correctly
- :nth-child( 23n + 123 ) should be parsed and serialized correctly
- :nth-child(n- 1 2) should not parse
- :nth-child(n-b1) should not parse
- :nth-child(n-+1) should not parse
- :nth-child(n-1n) should not parse
- :nth-child(-n -b1) should not parse
- :nth-child(-1n- b1) should not parse
- :nth-child(-n-13b1) should not parse
- :nth-child(-n-+1) should not parse
- :nth-child(-n+n) should not parse
- :nth-child(+ 1n) should not parse
- :nth-child( n +12 3) should not parse
- :nth-child( 12 n ) should not parse
- :nth-child(+12n-0+1) should not parse
- :nth-child(+12N -- 1) should not parse
- :nth-child(+12 N ) should not parse
- :nth-child(+ n + 7) should not parse
- :nth-last-child(1n+0) should be parsed and serialized correctly
- :nth-last-child(n+0) should be parsed and serialized correctly
- :nth-last-child(n) should be parsed and serialized correctly
- :nth-last-child(-n+0) should be parsed and serialized correctly
- :nth-last-child(-n) should be parsed and serialized correctly
- :nth-last-child(N) should be parsed and serialized correctly
- :nth-last-child(+n+3) should be parsed and serialized correctly
- :nth-last-child( +n + 7 ) should be parsed and serialized correctly
- :nth-last-child( N- 123) should be parsed and serialized correctly
- :nth-last-child(n- 10) should be parsed and serialized correctly
- :nth-last-child(-n - 1) should be parsed and serialized correctly
- :nth-last-child( 23n + 123 ) should be parsed and serialized correctly
- :nth-last-child(n- 1 2) should not parse
- :nth-last-child(n-b1) should not parse
- :nth-last-child(n-+1) should not parse
- :nth-last-child(n-1n) should not parse
- :nth-last-child(-n -b1) should not parse
- :nth-last-child(-1n- b1) should not parse
- :nth-last-child(-n-13b1) should not parse
- :nth-last-child(-n-+1) should not parse
- :nth-last-child(-n+n) should not parse
- :nth-last-child(+ 1n) should not parse
- :nth-last-child( n +12 3) should not parse
- :nth-last-child( 12 n ) should not parse
- :nth-last-child(+12n-0+1) should not parse
- :nth-last-child(+12N -- 1) should not parse
- :nth-last-child(+12 N ) should not parse
- :nth-last-child(+ n + 7) should not parse
- :nth-of-type(1n+0) should be parsed and serialized correctly
- :nth-of-type(n+0) should be parsed and serialized correctly
- :nth-of-type(n) should be parsed and serialized correctly
- :nth-of-type(-n+0) should be parsed and serialized correctly
- :nth-of-type(-n) should be parsed and serialized correctly
- :nth-of-type(N) should be parsed and serialized correctly
- :nth-of-type(+n+3) should be parsed and serialized correctly
- :nth-of-type( +n + 7 ) should be parsed and serialized correctly
- :nth-of-type( N- 123) should be parsed and serialized correctly
- :nth-of-type(n- 10) should be parsed and serialized correctly
- :nth-of-type(-n - 1) should be parsed and serialized correctly
- :nth-of-type( 23n + 123 ) should be parsed and serialized correctly
- :nth-of-type(n- 1 2) should not parse
- :nth-of-type(n-b1) should not parse
- :nth-of-type(n-+1) should not parse
- :nth-of-type(n-1n) should not parse
- :nth-of-type(-n -b1) should not parse
- :nth-of-type(-1n- b1) should not parse
- :nth-of-type(-n-13b1) should not parse
- :nth-of-type(-n-+1) should not parse
- :nth-of-type(-n+n) should not parse
- :nth-of-type(+ 1n) should not parse
- :nth-of-type( n +12 3) should not parse
- :nth-of-type( 12 n ) should not parse
- :nth-of-type(+12n-0+1) should not parse
- :nth-of-type(+12N -- 1) should not parse
- :nth-of-type(+12 N ) should not parse
- :nth-of-type(+ n + 7) should not parse
- :nth-last-of-type(1n+0) should be parsed and serialized correctly
- :nth-last-of-type(n+0) should be parsed and serialized correctly
- :nth-last-of-type(n) should be parsed and serialized correctly
- :nth-last-of-type(-n+0) should be parsed and serialized correctly
- :nth-last-of-type(-n) should be parsed and serialized correctly
- :nth-last-of-type(N) should be parsed and serialized correctly
- :nth-last-of-type(+n+3) should be parsed and serialized correctly
- :nth-last-of-type( +n + 7 ) should be parsed and serialized correctly
- :nth-last-of-type( N- 123) should be parsed and serialized correctly
- :nth-last-of-type(n- 10) should be parsed and serialized correctly
- :nth-last-of-type(-n - 1) should be parsed and serialized correctly
- :nth-last-of-type( 23n + 123 ) should be parsed and serialized correctly
- :nth-last-of-type(n- 1 2) should not parse
- :nth-last-of-type(n-b1) should not parse
- :nth-last-of-type(n-+1) should not parse
- :nth-last-of-type(n-1n) should not parse
- :nth-last-of-type(-n -b1) should not parse
- :nth-last-of-type(-1n- b1) should not parse
- :nth-last-of-type(-n-13b1) should not parse
- :nth-last-of-type(-n-+1) should not parse
- :nth-last-of-type(-n+n) should not parse
- :nth-last-of-type(+ 1n) should not parse
- :nth-last-of-type( n +12 3) should not parse
- :nth-last-of-type( 12 n ) should not parse
- :nth-last-of-type(+12n-0+1) should not parse
- :nth-last-of-type(+12N -- 1) should not parse
- :nth-last-of-type(+12 N ) should not parse
- :nth-last-of-type(+ n + 7) should not parse
parse-attribute.html 16 / 16 passingChrome 16 / 160 failedClean
16 passing subtests
- "[att]" should be a valid selector
- "[att=val]" should be a valid selector
- "[att~=val]" should be a valid selector
- "[att|=val]" should be a valid selector
- "h1[title]" should be a valid selector
- "span[class='example']" should be a valid selector
- "a[hreflang=fr]" should be a valid selector
- "a[hreflang|='en']" should be a valid selector
- "[att^=val]" should be a valid selector
- "[att$=val]" should be a valid selector
- "[att*=val]" should be a valid selector
- "object[type^=\"image/\"]" should be a valid selector
- "a[href$=\".html\"]" should be a valid selector
- "p[title*=\"hello\"]" should be a valid selector
- "[*|att]" should be a valid selector
- "[|att]" should be a valid selector
parse-child.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- "body > p" should be a valid selector
- "div ol>li p" should be a valid selector
parse-class.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- "*.pastoral" should be a valid selector
- ".pastoral" should be a valid selector
- "h1.pastoral" should be a valid selector
- "p.pastoral.marine" should be a valid selector
parse-descendant.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- "h1 em" should be a valid selector
- "div * p" should be a valid selector
- "div p *[href]" should be a valid selector
parse-focus-visible.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- ":focus-visible" should be a valid selector
- "a:focus-visible" should be a valid selector
- ":focus:not(:focus-visible)" should be a valid selector
parse-has-disallow-nesting-has-inside-has.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- ".a:has(.b:has(.c))" should be an invalid selector
- CSS Selectors: The relational pseudo-class (disallow nesting :has() inside :has())
parse-has-forgiving-selector.html 3 / 3 passingChrome 0 / 30 failedClean
3 passing subtests
- ":has(:is(:has(*)))" should be a valid selector
- ":has(:where(:has(*)))" should be a valid selector
- ":has(:is(.a, 123))" should be a valid selector
parse-has.html 29 / 29 passingChrome 29 / 290 failedClean
29 passing subtests
- ":has(a)" should be a valid selector
- ":has(#a)" should be a valid selector
- ":has(.a)" should be a valid selector
- ":has([a])" should be a valid selector
- ":has([a=\"b\"])" should be a valid selector
- ":has([a|=\"b\"])" should be a valid selector
- ":has(:hover)" should be a valid selector
- "*:has(.a)" should be a valid selector
- ".a:has(.b)" should be a valid selector
- ".a:has(> .b)" should be a valid selector
- ".a:has(~ .b)" should be a valid selector
- ".a:has(+ .b)" should be a valid selector
- ".a:has(.b) .c" should be a valid selector
- ".a .b:has(.c)" should be a valid selector
- ".a .b:has(.c .d)" should be a valid selector
- ".a .b:has(.c .d) .e" should be a valid selector
- ".a:has(.b:is(.c .d))" should be a valid selector
- ".a:is(.b:has(.c) .d)" should be a valid selector
- ".a:not(:has(.b))" should be a valid selector
- ".a:has(:not(.b))" should be a valid selector
- ".a:has(.b):has(.c)" should be a valid selector
- "*|*:has(*)" should be a valid selector
- ":has(*|*)" should be a valid selector
- ":has" should be an invalid selector
- ".a:has" should be an invalid selector
- ".a:has b" should be an invalid selector
- ":has()" should be an invalid selector
- ":has(123)" should be an invalid selector
- ":has(.a, 123)" should be an invalid selector
parse-heading.html 28 / 28 passingChrome 18 / 280 failedClean
28 passing subtests
- ":heading" should be a valid selector
- ":heading(2)" should be a valid selector
- ":heading(99999)" should be a valid selector
- ":heading(0)" should be a valid selector
- ":heading(0, 1, 2)" should be a valid selector
- ":heading(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)" should be a valid selector
- ":heading(-1)" should be a valid selector
- "h1:heading" should be a valid selector
- "h1:heading(1)" should be a valid selector
- "h1:heading(2)" should be a valid selector
- ":heading()" should be an invalid selector
- ":heading(1.0)" should be an invalid selector
- ":heading(1.4)" should be an invalid selector
- ":heading(n)" should be an invalid selector
- ":heading(odd)" should be an invalid selector
- ":heading(even)" should be an invalid selector
- ":heading(2n)" should be an invalid selector
- ":heading(2n+1)" should be an invalid selector
- ":heading(2n+2)" should be an invalid selector
- ":heading(-n+3)" should be an invalid selector
- ":heading(2n, 3n)" should be an invalid selector
- ":heading(2, 3n)" should be an invalid selector
- ":heading(2 of .foo)" should be an invalid selector
- ":heading(2n of .foo)" should be an invalid selector
- ":heading(calc(1))" should be an invalid selector
- ":heading(max(1, 2))" should be an invalid selector
- ":heading(min(1, 2)" should be an invalid selector
- ":heading(var(--level))" should be an invalid selector
parse-id.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- "h1#chapter1" should be a valid selector
- "#chapter1" should be a valid selector
- "*#z98y" should be a valid selector
parse-is-where.html 42 / 45 passingChrome 26 / 453 failedWith failures
- ¶
FAIL"::part(foo):is([attr='value'])" should be a valid selector
assert_equals: serialization should be canonical expected "::part(foo):is([attr='value'])" but got "::part(foo):is([attr=\"value\"])"
- ¶
FAIL"::part(foo):where([attr='value'])" should be a valid selector
assert_equals: serialization should be canonical expected "::part(foo):where([attr='value'])" but got "::part(foo):where([attr=\"value\"])"
- ¶
FAIL":is(# C4єанйтж╕/┘ГÐжЮХєа▓â”ÐÐБМєаСеÐÐЖÐ%=[Ñмм0)" should be an invalid selector
assert_throws_dom: ":is(# C4єанйтж╕/┘ГÐжЮХєа▓â”ÐÐБМєаСеÐÐЖÐ%=[Ñмм0)" should throw in querySelector function "() => document.querySelector(selector)" did not throw
42 passing subtests
- ":is(div )" should be a valid selector
- ":where(div )" should be a valid selector
- ":is(div + bar, div ~ .baz)" should be a valid selector
- ":where(div + bar, div ~ .baz)" should be a valid selector
- ":is(:is(div))" should be a valid selector
- ":where(:is(div))" should be a valid selector
- ":is(:where(div))" should be a valid selector
- ":where(:where(div))" should be a valid selector
- ":host(:is(div))" should be a valid selector
- ":host(:where(div))" should be a valid selector
- ":host(:is(div ))" should be a valid selector
- ":host(:where(div ))" should be a valid selector
- ":host(:is(div .foo))" should be a valid selector
- ":host(:where(div .foo))" should be a valid selector
- ":is(:hover, :active)" should be a valid selector
- ":where(:hover, :active)" should be a valid selector
- ":is(div):hover" should be a valid selector
- ":where(div):hover" should be a valid selector
- ":is(div)::before" should be a valid selector
- ":where(div)::before" should be a valid selector
- ":is(::before)" should be a valid selector
- ":where(::before)" should be a valid selector
- ":is(div) + bar" should be a valid selector
- ":where(div) + bar" should be a valid selector
- "::part(foo):is(:hover)" should be a valid selector
- "::part(foo):where(:hover)" should be a valid selector
- ":not(:is(div))" should be a valid selector
- ":not(:where(div))" should be a valid selector
- ":not(:is(div .foo))" should be a valid selector
- ":not(:where(div .foo))" should be a valid selector
- ":is(,,,)" should be a valid selector
- ":where(,,,)" should be a valid selector
- ":host(:is(,,,))" should be a valid selector
- ":host(:where(,,,))" should be a valid selector
- ":host(:is(.a, .b+.c, .d))" should be a valid selector
- ":host(:where(.a, .b+.c, .d))" should be a valid selector
- ":is(::before:HOVER, .a)" should be a valid selector
- ":where(::before:HOVER, .a)" should be a valid selector
- ":has(:is(:has(.a+.b)))" should be a valid selector
- ":has(:where(:has(.a+.b)))" should be a valid selector
- ":is(::before:HOVER )" should be a valid selector
- ":where(::before:HOVER )" should be a valid selector
parse-is.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- ":is(ul,ol,.list) > [hidden]" should be a valid selector
- ":is(:hover,:focus)" should be a valid selector
- "a:is(:not(:hover))" should be a valid selector
- ":is(#a)" should be a valid selector
- ".a.b ~ :is(.c.d ~ .e.f)" should be a valid selector
- ".a.b ~ .c.d:is(span.e + .f, .g.h > .i.j .k)" should be a valid selector
parse-not.html 26 / 26 passingChrome 26 / 260 failedClean
26 passing subtests
- "button:not([disabled])" should be a valid selector
- "*:not(foo)" should be a valid selector
- ":not(:link):not(:visited)" should be a valid selector
- "*|*:not(*)" should be a valid selector
- ":not(:hover)" should be a valid selector
- ":not(*|*)" should be a valid selector
- "foo:not(bar)" should be a valid selector
- ":not(:not(foo))" should be a valid selector
- ":not(.a .b)" should be a valid selector
- ":not(.a + .b)" should be a valid selector
- ":not(.a .b ~ c)" should be a valid selector
- ":not(span.a, div.b)" should be a valid selector
- ":not(.a .b ~ c, .d .e)" should be a valid selector
- ":not(:host)" should be a valid selector
- ":not(:host(.a))" should be a valid selector
- ":host(:not(.a))" should be a valid selector
- ":not(:host(:not(.a)))" should be a valid selector
- ":not([disabled][selected])" should be a valid selector
- ":not([disabled],[selected])" should be a valid selector
- ":not()" should be an invalid selector
- ":not(:not())" should be an invalid selector
- ":not(::before)" should be an invalid selector
- ":not(:unknownpseudo)" should be an invalid selector
- ":not(.a, :unknownpseudo)" should be an invalid selector
- ":not(:unknownpseudo, .a)" should be an invalid selector
- ":host(:not(.a .b))" should be an invalid selector
parse-part.html 32 / 32 passingChrome 28 / 320 failedClean
32 passing subtests
- "::part(--foo)" should be a valid selector
- "::part(bar)" should be a valid selector
- "::part(--)" should be a valid selector
- "::part(--0)" should be a valid selector
- "::part(foo bar)" should be a valid selector
- "::part(-foo bar)" should be a valid selector
- "::part(foo):focus" should be a valid selector
- "::part(foo):hover" should be a valid selector
- "::part(foo):focus-within" should be a valid selector
- "::part(foo)::before" should be a valid selector
- "::part(foo)::after" should be a valid selector
- "::part(foo)::placeholder" should be a valid selector
- "::part(foo)::first-line" should be a valid selector
- "::part(foo)::first-letter" should be a valid selector
- "::part(foo)::file-selector-button" should be a valid selector
- "::part(foo):is(:focus)" should be a valid selector
- ":lang(en)::part(foo)" should be a valid selector
- ":dir(ltr)::part(foo)" should be a valid selector
- "::part(foo):lang(en)" should be a valid selector
- "::part(foo):dir(ltr)" should be a valid selector
- "::part(foo):disabled" should be a valid selector
- "::part(foo):checked" should be a valid selector
- ":part()" should be an invalid selector
- ":part(0)" should be an invalid selector
- ":part('foo')" should be an invalid selector
- ":part([foo])" should be an invalid selector
- "::part(foo) + ::part(bar)" should be an invalid selector
- "::part(foo):is(ul)" should be a valid selector
- "::part(foo):is(nav ul)" should be a valid selector
- "::part(foo):where(ul)" should be a valid selector
- "::part(foo):where(nav ul)" should be a valid selector
- "::part(foo):has(li)" should be an invalid selector
parse-sibling.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- "math + p" should be a valid selector
- "h1.opener + h2" should be a valid selector
- "h1 ~ pre" should be a valid selector
parse-slotted.html 19 / 19 passingChrome 18 / 190 failedClean
19 passing subtests
- "::slotted(bar)" should be a valid selector
- "::slotted([attr=\"foo\"])" should be a valid selector
- "::slotted(*)" should be a valid selector
- "::slotted(.class)" should be a valid selector
- "::slotted(:not(foo))" should be a valid selector
- "::slotted(:not(:nth-last-of-type(2)):not([slot=\"foo\"]))" should be a valid selector
- "::slotted(:first-child)" should be a valid selector
- "::slotted(:hover)" should be a valid selector
- "::slotted(:has(:first-child:last-child))" should be a valid selector
- "::slotted" should be an invalid selector
- "::slotted()" should be an invalid selector
- "::slotted(0)" should be an invalid selector
- ":slotted(foo)" should be an invalid selector
- "::slotted(foo):first-child" should be an invalid selector
- "::slotted(foo):hover" should be an invalid selector
- "::slotted(foo):focus" should be an invalid selector
- "::slotted(foo):lang(en)" should be an invalid selector
- "::slotted(foo):dir(ltr)" should be an invalid selector
- "::slotted(foo) + ::slotted(bar)" should be an invalid selector
parse-state.html 24 / 24 passingChrome 24 / 240 failedClean
24 passing subtests
- ":state(--foo)" should be a valid selector
- ":state(bar)" should be a valid selector
- ":state(--)" should be a valid selector
- ":state(--0)" should be a valid selector
- ":host(:state(--foo))" should be a valid selector
- "my-input[type=\"foo\"]:state(checked)" should be a valid selector
- "my-input[type=\"foo\"]:state(--0)::before" should be a valid selector
- "my-input[type=\"foo\"]:state(--0)::part(inner)" should be a valid selector
- "my-input[type=\"foo\"]:state(--0)::part(inner):state(bar)" should be a valid selector
- "::part(inner):state(bar)::before" should be a valid selector
- "::part(inner):state(bar)::after" should be a valid selector
- ":state" should be an invalid selector
- ":state(" should be an invalid selector
- ":state()" should be an invalid selector
- ":state(0)" should be an invalid selector
- ":state(0rem)" should be an invalid selector
- ":state(url())" should be an invalid selector
- ":state(foo(1))" should be an invalid selector
- ":state(:host)" should be an invalid selector
- "my-input::after:state(foo)" should be an invalid selector
- "::part(inner):state(bar)::before:state(foo)" should be an invalid selector
- "::part(inner):state(bar)::after:state(foo)" should be an invalid selector
- "my-input::first-letter:state(foo)" should be an invalid selector
- "::slotted(foo):state(foo)" should be an invalid selector
parse-universal.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- "*" should be a valid selector
- "div :first-child" should be a valid selector
- "div *:first-child" should be a valid selector
parse-where.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- ":where(ul,ol,.list) > [hidden]" should be a valid selector
- ":where(:hover,:focus)" should be a valid selector
- "a:where(:not(:hover))" should be a valid selector
- ":where(#a)" should be a valid selector
- ".a.b ~ :where(.c.d ~ .e.f)" should be a valid selector
- ".a.b ~ .c.d:where(span.e + .f, .g.h > .i.j .k)" should be a valid selector