document-element-detached-crash.html (562B)
1 <!DOCTYPE html> 2 <html class="test-wait"> 3 <title>View transitions: documentElement.remove</title> 4 <link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/"> 5 <link rel="author" href="mailto:vmpstr@chromium.org"> 6 7 <style> 8 html { 9 display: none; 10 } 11 </style> 12 13 <script> 14 function runTest() { 15 document.startViewTransition(() => { 16 requestAnimationFrame(() => { 17 const html = document.documentElement; 18 html.remove(); 19 html.classList.remove('test-wait'); 20 }); 21 }); 22 } 23 onload = () => requestAnimationFrame(runTest); 24 </script> 25 </html>