Skip to content
Skip the list of specifications

css/selectors/parsing/

parse-slotted.html

Fails: 17 of 19 assertions match, 2 do not

A parsing check: each value the parser must accept or reject.

Run it in the playgroundThe fileOn GitHubBrowsers’ results on wpt.fyi

Each assertion

A passing assertion got what it asked for, so only a failing one shows what it expected and what it got.

AssertionExpectedGotVerdict
"::slotted(foo):hover" should be an invalid selectorrejectedacceptedFails
"::slotted(foo):focus" should be an invalid selectorrejectedacceptedFails
"::slotted(bar)" should be a valid selectorPasses
"::slotted([attr=\"foo\"])" should be a valid selectorPasses
"::slotted(*)" should be a valid selectorPasses
"::slotted(.class)" should be a valid selectorPasses
"::slotted(:not(foo))" should be a valid selectorPasses
"::slotted(:not(:nth-last-of-type(2)):not([slot=\"foo\"]))" should be a valid selectorPasses
"::slotted(:first-child)" should be a valid selectorPasses
"::slotted(:hover)" should be a valid selectorPasses
"::slotted(:has(:first-child:last-child))" should be a valid selectorPasses
"::slotted" should be an invalid selectorPasses
"::slotted()" should be an invalid selectorPasses
"::slotted(0)" should be an invalid selectorPasses
":slotted(foo)" should be an invalid selectorPasses
"::slotted(foo):first-child" should be an invalid selectorPasses
"::slotted(foo):lang(en)" should be an invalid selectorPasses
"::slotted(foo):dir(ltr)" should be an invalid selectorPasses
"::slotted(foo) + ::slotted(bar)" should be an invalid selectorPasses

Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.