wpt / css / css-overflow / parsing / scroll-buttons-invalid.html

Status: FAIL | Duration: 57ms | Subtests: 0/8 | 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
"::scroll-button" should be an invalid selectorFAILassert_throws_dom: "::scroll-button" 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
"::scroll-button)" should be an invalid selectorFAILassert_throws_dom: "::scroll-button)" 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
"::scroll-button(" should be an invalid selectorFAILassert_throws_dom: "::scroll-button(" 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
"::scroll-button()" should be an invalid selectorFAILassert_throws_dom: "::scroll-button()" 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
"::scroll-button('up')" should be an invalid selectorFAILassert_throws_dom: "::scroll-button('up')" 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
"::scroll-button(up, down)" should be an invalid selectorFAILassert_throws_dom: "::scroll-button(up, down)" 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
"::scroll-button(north)" should be an invalid selectorFAILassert_throws_dom: "::scroll-button(north)" 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
"::scroll-button(5051)" should be an invalid selectorFAILassert_throws_dom: "::scroll-button(5051)" 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-overflow/parsing/scroll-buttons-invalid.html

<!doctype html>
<meta charset="utf-8">
<title>CSS Overflow Test: ::scroll-button() invalid tests</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-buttons">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
  test_invalid_selector('::scroll-button');
  test_invalid_selector('::scroll-button)');
  test_invalid_selector('::scroll-button(');
  test_invalid_selector('::scroll-button()');
  test_invalid_selector('::scroll-button(\'up\')');
  test_invalid_selector('::scroll-button(up, down)');
  test_invalid_selector('::scroll-button(north)');
  test_invalid_selector('::scroll-button(5051)');
</script>