clip-path-animation-inherit.html (821B)
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-inherit-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.999s; 11 } 12 13 body { 14 clip-path: circle(50% at 0 0); 15 } 16 17 @keyframes clippath { 18 0% { 19 clip-path: circle(20px at 20px 20px); 20 } 21 22 100% { 23 clip-path: inherit; 24 } 25 } 26 </style> 27 <script src="/common/reftest-wait.js"></script> 28 <script src="../../../../web-animations/resources/timing-utils.js"></script> 29 30 <body> 31 <div class="container"></div> 32 33 <script> 34 waitForAnimationTime(document.getAnimations()[0], 1).then(takeScreenshot); 35 </script> 36 </body> 37 38 </html>