mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +01:00
45 lines
1.2 KiB
HTML
45 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html class=reftest-wait>
|
|
<head>
|
|
<title>View transitions: Transition from an empty iframe</title>
|
|
<link rel="help" href="https://github.com/WICG/view-transitions">
|
|
<link rel="author" href="mailto:bokan@chromium.org">
|
|
<link rel="match" href="transition-in-empty-iframe-ref.html">
|
|
<meta name=fuzzy content="transition-in-empty-iframe-ref.html:0-80;0-1000">
|
|
<script src="/common/reftest-wait.js"></script>
|
|
<style>
|
|
iframe {
|
|
position: absolute;
|
|
left: 25px;
|
|
top: 25px;
|
|
width: 50vw;
|
|
height: 50vh;
|
|
}
|
|
/* This div overlaps with the iframe, because the iframe is empty it should
|
|
* be visible behind the iframe. */
|
|
div {
|
|
background-color: skyblue;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
</style>
|
|
<script>
|
|
onload = () => {
|
|
requestAnimationFrame(()=>{requestAnimationFrame(()=> {
|
|
frames[0].window.startTransition();
|
|
frames[0].window.transition.ready.then(() => {
|
|
requestAnimationFrame(()=>{requestAnimationFrame(()=> {
|
|
takeScreenshot();
|
|
})});
|
|
});
|
|
})});
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<iframe src="support/transition-in-empty-iframe-child.html">
|
|
</iframe>
|
|
<div></div>
|
|
</body>
|
|
</html>
|