artViewTransition");
  t.add_cleanup(resetState);
  return new Promise(async (resolve, reject) => {
    target.style.viewTransitionName = "target";
    window.transition = document.startViewTransition();
    window.transition.ready.then(() => {
      let style = getComputedStyle(document.documentElement, "::view-transition-group(root)");
      if (style.backgroundColor == "rgb(0, 0, 255)" && style.color == "rgb(0, 0, 255)")
        resolve();
      else
        reject(style.backgroundColor + " and " + style