2 <html class=reftest-wait
>
3 <title>Shared transitions: shared element with overflow
</title>
4 <link rel=
"help" href=
"https://github.com/WICG/view-transitions">
5 <link rel=
"author" href=
"mailto:khushalsagar@chromium.org">
6 <link rel=
"match" href=
"content-with-overflow-ref.html">
7 <script src=
"/common/reftest-wait.js"></script>
14 overflow-clip-margin:
50px;
15 view-transition-name: target;
26 html::view-transition-group(target) { animation-duration:
300s; }
27 html::view-transition-new(target) { animation: unset; opacity:
0; }
28 html::view-transition-old(target) {
33 html::view-transition-group(root) { animation: unset; opacity:
0; }
34 html::view-transition { background: lightpink; }
43 failIfNot(document
.startViewTransition
, "Missing document.startViewTransition");
45 async
function runTest() {
46 document
.startViewTransition(() =>
47 requestAnimationFrame(() => requestAnimationFrame(takeScreenshot
)));
49 onload
= () => requestAnimationFrame(() => requestAnimationFrame(runTest
));