Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-view-transitions/no-crash-view-transition-in-massive-iframe.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>View transitions: no crash with view-transitions in massive iframe</title>
<link rel="author" href="mailto:roger.johannesson@xperi.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
iframe { width: 40000px; height: 40000px }
</style>
<iframe></iframe>
<script>
promise_test(async t => {
const iframeDoc = document.getElementsByTagName("iframe")[0].contentDocument;
assert_implements(iframeDoc.startViewTransition, "Missing document.startViewTransition in iframe");
const transition = iframeDoc.startViewTransition();
try { await transition.ready; } catch {}
}, "startViewTransition in massive iframe shouldn't crash.");
</script>