diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/css/css-view-transitions/transition-in-empty-iframe.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-view-transitions/transition-in-empty-iframe.html')
-rw-r--r-- | testing/web-platform/tests/css/css-view-transitions/transition-in-empty-iframe.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-view-transitions/transition-in-empty-iframe.html b/testing/web-platform/tests/css/css-view-transitions/transition-in-empty-iframe.html new file mode 100644 index 0000000000..99e9f24176 --- /dev/null +++ b/testing/web-platform/tests/css/css-view-transitions/transition-in-empty-iframe.html @@ -0,0 +1,45 @@ +<!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> |