ansition");

async function runTest() {
  let transition = document.startViewTransition(() => {
    document.body.classList.add('transitioned');
  });

  transition.ready.then(() => {
    for (const anim of document.getAnimations()) {
      anim.pause();
      if (anim.effect.getTiming().duration == 3000) {
        // This is an animation for the end subtree. Adjust it to the end
        // (without finishing the animation) so we're displaying the final
        // position.
        anim.currentTime = anim.e