mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +01:00
23 lines
594 B
HTML
23 lines
594 B
HTML
<!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>
|
|
|