- Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathroot-element-transition-iframe.html
24 lines (21 loc) · 898 Bytes
/
root-element-transition-iframe.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<htmlclass="reftest-wait">
<title>View transitions: basic cross-document navigation in an iframe</title>
<linkrel="help" href="https://drafts.csswg.org/css-view-transitions-2/">
<linkrel="author" href="mailto:khushalsagar@chromium.org">
<linkrel="match" href="root-element-transition-iframe-ref.html">
<scriptsrc="/common/reftest-wait.js"></script>
<scriptsrc="resources/common.js"></script>
<iframeid="inner" src="resources/root-element-transition-iframe.html?blue"></iframe>
<script>
asyncfunctionrunTest(){
letframe=document.getElementById("inner");
frame.contentWindow.postMessage("checkrendering");
awaitwaitForMessage("rendered");
frame.src="resources/root-element-transition-iframe.html?grey";
awaitwaitForMessage("transition");
takeScreenshot();
}
onload=()=>requestAnimationFrame(()=>requestAnimationFrame(runTest));
</script>
</html>