1
0
Fork 0
firefox/testing/web-platform/tests/css/cssom/invalid-pseudo-elements.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

17 lines
630 B
HTML

<!doctype html>
<meta charset="utf-8">
<title>CSSOM: Test that rules with invalid pseudo elements are not found</title>
<link rel="help" href="https://drafts.csswg.org/cssom/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
::part {}
::slotted {}
::highlight {}
</style>
<script>
test(() => {
assert_equals(document.styleSheets[0].cssRules[0]?.selectorText, undefined, "No associated selectorText");
assert_equals(document.styleSheets[0].cssRules[0], undefined, "No invalid pseudo element rule should be found");
});
</script>