clip-path-animation-circle-0-percent.html (730B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#basic-shape-interpolation"> 4 <link rel="match" href="clip-path-animation-circle-0-percent-ref.html"> 5 <style> 6 .container { 7 width: 100px; 8 height: 100px; 9 background-color: green; 10 animation: clippath 20s steps(2, jump-end) -9.95s; 11 } 12 @keyframes clippath { 13 0% { clip-path: circle(0% at 50% 50%); } 14 100% { clip-path: circle(50% at 50% 50%); } 15 } 16 </style> 17 <script src="/common/reftest-wait.js"></script> 18 <script src="/web-animations/resources/timing-utils.js"></script> 19 <body> 20 <div class="container"></div> 21 22 <script> 23 waitForAnimationTime(document.getAnimations()[0], 50).then(takeScreenshot); 24 </script> 25 </body> 26 </html>