<!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>

