Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!DOCTYPE html>
<title>CSS Pseudo Test: CSSPseudoElement stable identity</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="target"></div>
<script>
test(() => {
let pseudo = target.pseudo("::before");
assert_equals(pseudo.type, "::before");
assert_equals(pseudo.parent, target);
assert_equals(pseudo.element, target);
assert_true(pseudo === target.pseudo("::before"));
});
</script>