mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
30 lines
691 B
HTML
30 lines
691 B
HTML
<!DOCTYPE html>
|
|
<html class=test-wait>
|
|
<title>View transitions: html display none</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
|
|
<link rel="author" href="mailto:vmpstr@chromium.org">
|
|
|
|
<style>
|
|
html {
|
|
display: none;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
function finish() {
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
|
|
async function runTest() {
|
|
if (!document.startViewTransition) {
|
|
document.body.textContent = "Precondition Failed: Missing document.startViewTransition";
|
|
finish();
|
|
return;
|
|
}
|
|
|
|
document.startViewTransition().finished.then(finish, finish);
|
|
}
|
|
onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest));
|
|
</script>
|
|
|