Source code
Revision control
Copy as Markdown
Other Tools
[class-prefix-selector-has-matching.tentative.html]
[:has(.foo-*) matches an element with a descendant, at any depth, whose class matches the prefix]
expected: FAIL
[:has(> .foo-*) only matches a direct child, unlike the plain descendant form]
expected: FAIL
[:has(+ .foo-*) matches when the immediately following sibling matches the prefix]
expected: FAIL
[:has(~ .foo-*) matches a later sibling that is not the immediately following one]
expected: FAIL
[:has(~ .bar > .foo-*) matches when a later sibling has a matching direct child]
expected: FAIL
[:has(~ .bar .foo-*) matches at any depth under a later sibling, unlike the direct-child form]
expected: FAIL
[class prefix selector works inside :has() used as a :not() argument]
expected: FAIL
[a class prefix selector on the same compound as :has() still matches normally]
expected: FAIL