iframe-new-has-scrollbar.html (1226B)
1 <!DOCTYPE html> 2 <html class=reftest-wait> 3 <head> 4 <title>View transitions: iframe transition to scrollbar</title> 5 <link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/"> 6 <link rel="author" href="mailto:bokan@chromium.org"> 7 <link rel="match" href="iframe-new-has-scrollbar-ref.html"> 8 <meta name=fuzzy content="maxDifference=0-80; totalPixels=0-500"> 9 <script src="/common/reftest-wait.js"></script> 10 <style> 11 iframe { 12 width: 50vw; 13 height: 50vh; 14 } 15 </style> 16 <script> 17 failIfNot(document.startViewTransition, "Missing document.startViewTransition"); 18 19 onload = () => { 20 requestAnimationFrame(()=>{requestAnimationFrame(()=> { 21 frames[0].window.startTransition(); 22 frames[0].window.transition.ready.then(() => { 23 requestAnimationFrame(()=>{requestAnimationFrame(()=> { 24 // Expect that the scrollbar should appear immediately, even though 25 // the new snapshot isn't visible (since the scrollbar isn't part 26 // of the snapshot). 27 takeScreenshot(); 28 })}); 29 }); 30 })}); 31 } 32 </script> 33 </head> 34 35 <body> 36 <iframe src="support/iframe-scrollbar-child.html"> 37 </iframe> 38 </body> 39 </html>