2 <html class=reftest-wait
>
3 <title>Shared transitions: display content in a pseudo with object-fit: none
</title>
4 <link rel=
"help" href=
"https://github.com/WICG/view-transitions">
5 <link rel=
"author" href=
"mailto:vmpstr@chromium.org">
6 <link rel=
"match" href=
"content-object-fit-none-ref.html">
7 <script src=
"/common/reftest-wait.js"></script>
16 view-transition-name: target;
17 background: lightblue;
23 view-transition-name: hidden;
27 html::view-transition-group(target) {
37 html::view-transition-new(target) {
41 html::view-transition-old(target) {
45 object-position:
0%
0%;
48 html::view-transition-group(hidden) {
49 animation-duration:
500s;
53 html::view-transition-group(root) { animation: unset; opacity:
0; }
54 html::view-transition { background: lightpink; }
57 <div id=target
>This is text
</div>
61 failIfNot(document
.startViewTransition
, "Missing document.startViewTransition");
63 async
function runTest() {
64 document
.startViewTransition(() => {
65 requestAnimationFrame(() => requestAnimationFrame(takeScreenshot
));
68 onload
= () => requestAnimationFrame(() => requestAnimationFrame(runTest
));