blob: c004a94dcbb62f1147f02342f61d4a3baaf516e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!DOCTYPE html>
<title>View transitions: no crash with view-transitions in massive iframe</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<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>
|