clip-path-animation-path.html (883B)
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-path-ref.html"> 5 <meta name=fuzzy content="0-10;0-200"> 6 <style> 7 .container { 8 width: 200px; 9 height: 200px; 10 background-color: green; 11 animation: clippath 20s steps(2, jump-end) -9.999s; 12 } 13 14 @keyframes clippath { 15 0% { 16 clip-path: path('M 0 200 L 0,75 A 5,5 0,0,1 150,75 L 150 200 z'); 17 } 18 19 100% { 20 clip-path: path('M 0 100 L 30,75 A 5,5 0,0,1 150,75 L 150 100 z'); 21 } 22 } 23 </style> 24 <script src="/common/reftest-wait.js"></script> 25 <script src="../../../../web-animations/resources/timing-utils.js"></script> 26 27 <body> 28 <div class="container"></div> 29 30 <script> 31 waitForAnimationTime(document.getAnimations()[0], 1).then(takeScreenshot); 32 </script> 33 </body> 34 35 </html>