fune/testing/web-platform/tests/css/css-view-transitions/navigation/root-element-transition-iframe.html
Vladimir Levin 0dc4b41866 Bug 1895371 [wpt PR 46108] - VT: Upstream navigation wpts, a=testonly
Automatic update from web-platform-tests
VT: Upstream navigation wpts

R=khushalsagar@chromium.org

Bug: 338008902
Change-Id: Iefe5a4a6cea9241e4d606b81e0293c066a9b30fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5514067
Commit-Queue: Khushal Sagar <khushalsagar@chromium.org>
Reviewed-by: Khushal Sagar <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1297685}

--

wpt-commits: f98b500d49d0ead67e880fa2d97f8928bc77c581
wpt-pr: 46108
2024-05-14 07:22:25 +00:00

24 lines
898 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<title>View transitions: basic cross-document navigation in an iframe</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-2/">
<link rel="author" href="mailto:khushalsagar@chromium.org">
<link rel="match" href="root-element-transition-iframe-ref.html">
<script src="/common/reftest-wait.js"></script>
<script src="resources/common.js"></script>
<iframe id="inner" src="resources/root-element-transition-iframe.html?blue"></iframe>
<script>
async function runTest() {
let frame = document.getElementById("inner");
frame.contentWindow.postMessage("checkrendering");
await waitForMessage("rendered");
frame.src = "resources/root-element-transition-iframe.html?grey";
await waitForMessage("transition");
takeScreenshot();
}
onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest));
</script>
</html>