wpt / css / css-pseudo / parsing / highlight-pseudos-search-text.tentative.html

Status: FAIL | Duration: 89ms | Subtests: 0/39 | Open test on wpt.live | wpt.fyi

Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)

SubtestStatusMessage
"::search-text" should be a valid selectorFAIL"::search-text" is not a valid selector
".a::search-text" should be a valid selectorFAIL".a::search-text" is not a valid selector
"div ::search-text" should be a valid selectorFAIL"div ::search-text" is not a valid selector
"::part(my-part)::search-text" should be a valid selectorFAIL"::part(my-part)::search-text" is not a valid selector
"::before::search-text" should be an invalid selectorFAILassert_throws_dom: "::before::search-text" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text.a" should be an invalid selectorFAILassert_throws_dom: "::search-text.a" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text div" should be an invalid selectorFAILassert_throws_dom: "::search-text div" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text::after" should be an invalid selectorFAILassert_throws_dom: "::search-text::after" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:hover" should be an invalid selectorFAILassert_throws_dom: "::search-text:hover" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:current(*)" should be an invalid selectorFAILassert_throws_dom: "::search-text:current(*)" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:past" should be an invalid selectorFAILassert_throws_dom: "::search-text:past" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:future" should be an invalid selectorFAILassert_throws_dom: "::search-text:future" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
":not(::search-text)" should be an invalid selectorFAILassert_throws_dom: ":not(::search-text)" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:current" should be a valid selectorFAIL"::search-text:current" is not a valid selector
".a::search-text:current" should be a valid selectorFAIL".a::search-text:current" is not a valid selector
"div ::search-text:current" should be a valid selectorFAIL"div ::search-text:current" is not a valid selector
"::part(my-part)::search-text:current" should be a valid selectorFAIL"::part(my-part)::search-text:current" is not a valid selector
"::before::search-text:current" should be an invalid selectorFAILassert_throws_dom: "::before::search-text:current" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:current.a" should be an invalid selectorFAILassert_throws_dom: "::search-text:current.a" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:current div" should be an invalid selectorFAILassert_throws_dom: "::search-text:current div" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:current::after" should be an invalid selectorFAILassert_throws_dom: "::search-text:current::after" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:current:hover" should be an invalid selectorFAILassert_throws_dom: "::search-text:current:hover" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:current:current(*)" should be an invalid selectorFAILassert_throws_dom: "::search-text:current:current(*)" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:current:past" should be an invalid selectorFAILassert_throws_dom: "::search-text:current:past" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:current:future" should be an invalid selectorFAILassert_throws_dom: "::search-text:current:future" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
":not(::search-text:current)" should be an invalid selectorFAILassert_throws_dom: ":not(::search-text:current)" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:not(:current)" should be a valid selectorFAIL"::search-text:not(:current)" is not a valid selector
".a::search-text:not(:current)" should be a valid selectorFAIL".a::search-text:not(:current)" is not a valid selector
"div ::search-text:not(:current)" should be a valid selectorFAIL"div ::search-text:not(:current)" is not a valid selector
"::part(my-part)::search-text:not(:current)" should be a valid selectorFAIL"::part(my-part)::search-text:not(:current)" is not a valid selector
"::before::search-text:not(:current)" should be an invalid selectorFAILassert_throws_dom: "::before::search-text:not(:current)" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:not(:current).a" should be an invalid selectorFAILassert_throws_dom: "::search-text:not(:current).a" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:not(:current) div" should be an invalid selectorFAILassert_throws_dom: "::search-text:not(:current) div" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:not(:current)::after" should be an invalid selectorFAILassert_throws_dom: "::search-text:not(:current)::after" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:not(:current):hover" should be an invalid selectorFAILassert_throws_dom: "::search-text:not(:current):hover" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:not(:current):current(*)" should be an invalid selectorFAILassert_throws_dom: "::search-text:not(:current):current(*)" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:not(:current):past" should be an invalid selectorFAILassert_throws_dom: "::search-text:not(:current):past" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
"::search-text:not(:current):future" should be an invalid selectorFAILassert_throws_dom: "::search-text:not(:current):future" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12
":not(::search-text:not(:current))" should be an invalid selectorFAILassert_throws_dom: ":not(::search-text:not(:current))" should throw in insertRule function "() => sheet.insertRule(selector + "{}")" threw object "TypeError: cannot convert 'null' or 'undefined' to object" that is not a DOMException 12: property "code" is equal to undefined, expected 12

/css/css-pseudo/parsing/highlight-pseudos-search-text.tentative.html

<!doctype html>
<meta charset="utf-8">
<title>CSS Pseudo-Elements Test: ::search-text selector parsing</title>
<link rel="help" href="https://drafts.csswg.org/css-pseudo/#highlight-selectors">
<link rel="author" name="Delan Azabani" href="mailto:dazabani@igalia.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
  for (const pseudo of [
    "::search-text",
    "::search-text:current",
    "::search-text:not(:current)",
  ]) {
    test_valid_selector(`${pseudo}`);
    test_valid_selector(`.a${pseudo}`);
    test_valid_selector(`div ${pseudo}`);
    test_valid_selector(`::part(my-part)${pseudo}`);

    test_invalid_selector(`::before${pseudo}`);
    test_invalid_selector(`${pseudo}.a`);
    test_invalid_selector(`${pseudo} div`);
    test_invalid_selector(`${pseudo}::after`);
    test_invalid_selector(`${pseudo}:hover`);
    test_invalid_selector(`${pseudo}:current(*)`);
    test_invalid_selector(`${pseudo}:past`);
    test_invalid_selector(`${pseudo}:future`);
    test_invalid_selector(`:not(${pseudo})`);
  }
</script>