Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/selectors/invalidation/crashtests/has-pseudoclass-only-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="David Shin" href="mailto:dshin@mozilla.com">
<style>
.anchor:has(:first-child + :last-child) {
color: green;
}
</style>
<div class="anchor">
<div class="first"></div>
<div id="dut" class="middle"></div>
<div class="last"></div>
</div>
<script>
requestAnimationFrame(() => {
requestAnimationFrame(() => {
dut.remove();
});
});
</script>