clip-path-animation-svg-zoom.html (985B)
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-svg-zoom-ref.html"> 5 <meta name="fuzzy" content="maxDifference=0-10; totalPixels=0-2"> 6 <style> 7 .clipped { 8 background-color: green; 9 stroke: black; 10 stroke-width: 3; 11 fill: red; 12 animation: clippath 20s steps(2, jump-end) -9.999s; 13 } 14 15 .svg { 16 width: 100px; 17 height: 100px; 18 zoom: 1.25; 19 } 20 21 @keyframes clippath { 22 0% { 23 clip-path: circle(50% at 50% 50%); 24 } 25 26 100% { 27 clip-path: circle(20% at 50% 50%); 28 } 29 } 30 </style> 31 <script src="/common/reftest-wait.js"></script> 32 <script src="../../../../web-animations/resources/timing-utils.js"></script> 33 34 <body> 35 <svg class="svg"> 36 <circle class="clipped" cx="40" cy="40" r="40" /> 37 </svg> 38 39 <script> 40 waitForAnimationTime(document.getAnimations()[0], 1).then(takeScreenshot); 41 </script> 42 </body> 43 44 </html>