servo/tests/wpt/web-platform-tests/css/css-view-transitions/document-element-detatched-crash.html

21 lines
446 B
HTML

<!DOCTYPE html>
<title>View transitions: documentElement.remove</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:vmpstr@chromium.org">
<style>
html {
display: none;
}
</style>
<script>
async function runTest() {
document.startViewTransition(() => {
requestAnimationFrame(() => document.documentElement.remove());
})
}
onload = () => requestAnimationFrame(runTest);
</script>