Status: FAIL | Duration: 8ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/motion/offset-path-url-011.html
<!DOCTYPE html> <html> <head> <title>CSS Motion Path: offset-path:url() reference to non-SVG elements</title> <link rel="help" href="https://drafts.fxtf.org/motion/#valdef-offset-path-url"> <link rel="match" href="offset-path-url-011-ref.html"> <meta name="assert" content='This tests that url() references to a non-SVG element and behaves as path("m 0 0") instead.'> <style> #outer { position: relative; left: 50px; top: 50px; width: 300px; height: 100px; } #target { width: 50px; height: 50px; background-color: green; /* This behaves as 'offset-path: path("m 0 0")' */ offset-path: url(#outer); offset-anchor: 50% 50%; offset-distance: 0%; border-radius: 50% 50% 0 0; } </style> </head> <body> <div id="outer"> <div id="target"></div> </div> </body> </html>
/css/motion/offset-path-url-011-ref.html
<!DOCTYPE html> <html> <head> <title>CSS Motion Path Referecne: url() to non SVG elements</title> <style> #target { width: 50px; height: 50px; background-color: green; transform: translate(25px, 25px); border-radius: 50% 50% 0 0; } </style> </head> <body> <div id="target"></div> </body> </html>