<div id="target" class="target">
  <div class="embedded" style="background: green;">Shared</div>
  <div class="embedded" style="background: blue">Element</div>
</div>
<div id=hidden class=hidden></div>

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

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

