root-element-transition-iframe.html (898B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <title>View transitions: basic cross-document navigation in an iframe</title> 4 <link rel="help" href="https://drafts.csswg.org/css-view-transitions-2/"> 5 <link rel="author" href="mailto:khushalsagar@chromium.org"> 6 <link rel="match" href="root-element-transition-iframe-ref.html"> 7 <script src="/common/reftest-wait.js"></script> 8 <script src="resources/common.js"></script> 9 10 <iframe id="inner" src="resources/root-element-transition-iframe.html?blue"></iframe> 11 <script> 12 async function runTest() { 13 let frame = document.getElementById("inner"); 14 frame.contentWindow.postMessage("checkrendering"); 15 await waitForMessage("rendered"); 16 17 frame.src = "resources/root-element-transition-iframe.html?grey"; 18 await waitForMessage("transition"); 19 20 takeScreenshot(); 21 } 22 onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest)); 23 </script> 24 </html>