summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/iframe-transition-destroyed-document-crash.html
blob: 13e743c3a1731bd20f3b8edabd8dbef86d418030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html class=test-wait>
<title>View transitions: crash test</title>
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
<link rel="author" href="mailto:vmpstr@chromium.org">
<html>
<head>
<script>
function eventhandler1() {
  var iframeDoc = iframe.contentDocument;
  var viewTransition = iframeDoc.startViewTransition();
  requestAnimationFrame(() => {
    requestAnimationFrame(() => {
      requestAnimationFrame(() => document.documentElement.classList.remove("test-wait"));
    })
  });
}

</script>
</head>
<body>
<iframe id="iframe" onunload="eventhandler3()" border="0" srcdoc="A#:^;&lt;gV&lt;&gt;8" style=":{,J" referrerpolicy="unsafe-url" background="!xp&gt;" nohref="nohref" nonce="nonce" inputEncoding="s" offsetX="0.3538512271910753">:+j&amp;;&amp;-^&gt;.7xf\jZ1,xb</iframe>
<style nonce="nonce" media="screen and (min-width:0px)" onerror="eventhandler1()" onload="eventhandler1()" dir="N5!" updateRangeEnd="0" abbr="4IvGMN[Wxd" symbols="=d##y#)DA4V8ya}KO.cv" frameBorder="^b*]&amp;:|#lB:" search="N">ynFXo*</style>
</body>
</html>