has-pseudoclass-only-crash.html (544B)
1 <!DOCTYPE html> 2 <link rel="author" title="David Shin" href="mailto:dshin@mozilla.com"> 3 <link rel="help" href="https://drafts.csswg.org/selectors/#relational"> 4 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1933852"> 5 <style> 6 .anchor:has(:first-child + :last-child) { 7 color: green; 8 } 9 </style> 10 <div class="anchor"> 11 <div class="first"></div> 12 <div id="dut" class="middle"></div> 13 <div class="last"></div> 14 </div> 15 <script> 16 requestAnimationFrame(() => { 17 requestAnimationFrame(() => { 18 dut.remove(); 19 }); 20 }); 21 </script>