reload-crash.html (612B)
1 <!DOCTYPE html> 2 <html class="test-wait"> 3 <title>View transitions: reload crash</title> 4 <link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/"> 5 <link rel="author" href="mailto:vmpstr@chromium.org"> 6 <script> 7 onload = () => requestAnimationFrame(() => requestAnimationFrame(() => requestAnimationFrame(() => { 8 let run = (new URLSearchParams(window.location.search)).get('run') || 0; 9 if (run > 5) { 10 document.documentElement.removeAttribute("class"); 11 } else { 12 const url = window.location.href.split('?')[0]; 13 window.location.href = url + `?run=${run + 1}`; 14 } 15 }))); 16 </script> 17 </html>