chromium/third_party/blink/web_tests/external/wpt/css/css-view-transitions/view-transition-types-removed.html

<!DOCTYPE html>
<html class="reftest-wait">
<title>View transitions: active-view-transition-type no longer matches after transition</title>
<link rel="help" href="https://www.w3.org/TR/css-transitions-2/">
<link rel="author" href="mailto:[email protected]">
<link rel="match" href="view-transition-types-one-green-square-ref.html">

<script src="/common/reftest-wait.js"></script>
<style>

body { background: lightpink; }
html:active-view-transition-type(type-name) #target {
  background: red;
}

#target {
  view-transition-name: target;
  background: green;
  width: 100px;
  height: 100px;
}

html::view-transition-group(root) {
  display: none;
}

html::view-transition { background: white; }
</style>

<div id="target"></div>

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

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