diff options
Diffstat (limited to 'testing/web-platform/tests/css/motion/offset-path-url-011.html')
-rw-r--r-- | testing/web-platform/tests/css/motion/offset-path-url-011.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/motion/offset-path-url-011.html b/testing/web-platform/tests/css/motion/offset-path-url-011.html new file mode 100644 index 0000000000..84dfe5205b --- /dev/null +++ b/testing/web-platform/tests/css/motion/offset-path-url-011.html @@ -0,0 +1,34 @@ +<!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> |