Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-masking/clip-path/animations/clip-path-path-interpolation-with-zoom.html
<!DOCTYPE html> <html> <title>CSS Masking: Test clip-path nonzero path interpolation with zoom</title> <link rel="help" href="https://drafts.csswg.org/css-shapes-2/#funcdef-path"> <link rel="match" href="clip-path-path-interpolation-with-zoom-ref.html"> <meta name="assert" content="The clip-path property takes the basic shape 'path()' for clipping. Test the interpolation of nonzero path function."> <style> @keyframes anim { from { clip-path: path(nonzero, 'M20,20h60 v60 h-60z M30,30 h40 v40 h-40z'); } to { clip-path: path(nonzero, 'M50,50h50 v50 h-50z M20,20 h50 v50 h-50z'); } } #rect { width: 100px; zoom: 3; height: 100px; background-color: green; animation: anim 10s -5s paused linear; } </style> <div id="rect"></div> </html>
/css/css-masking/clip-path/animations/clip-path-path-interpolation-with-zoom-ref.html
<!DOCTYPE html> <title>CSS Masking: Test clip-path nonzero path interpolation with zoom</title> <style type="text/css"> #rect { width: 300px; height: 300px; background-color: green; clip-path: path('M105,105 H270 V270 H105Z M75,75 H210 V210 H75Z'); } </style> <div id="rect"></div>