.color);
    });
  });
}, ":only-child should not match because ::view-transition-group is generated for multiple elements");

promise_test((t) => {
  assert_implements(document.startViewTransition, "Missing document.startViewTransition");
  t.add_cleanup(resetState);
  return new Promise(async (resolve, reject) => {
    document.documentElement.style.viewTransitionName = "none";
    target.style.viewTransitionName = "target";
    window.transition = document.startViewTransition();
    window.transition.rea