html::view-transition-image-pair(root) { visibility: hidden }
</style>

<div class=target>
  <span class=child>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
</div>

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

async function runTest() {
  document.startViewTransition(() =>
    requestAnimationFrame(() => requestAnimationFrame(takeScreenshot)));
}
onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest));
</script>

