ction runTest() {
  let transition = document.startViewTransition({
    types: ["type-name"]
  });
  transition.ready.then(takeScreenshot);
}
onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest));
</script>
</html>
