summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/root-element-display-none-crash.html
blob: fc55719c7e87bccb9d2862464b19e19112e02711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html class=reftest-wait>
<title>View transitions: html display none</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:vmpstr@chromium.org">

<script src="/common/reftest-wait.js"></script>
<style>
html {
  display: none;
}
</style>

<script>
failIfNot(document.startViewTransition, "Missing document.startViewTransition");

async function runTest() {
  document.startViewTransition().finished.then(takeScreenshot, takeScreenshot);

}
onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest));
</script>