offset-path-string-001.html (788B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Motion Path: path(string) paths</title> 5 <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org"> 6 <link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-path-property"> 7 <link rel="match" href="offset-path-string-ref.html"> 8 <meta name="assert" content="This tests that path(<string>) generates a rotation and translation."> 9 <style> 10 #target { 11 position: absolute; 12 left: 300px; 13 top: 0px; 14 width: 300px; 15 height: 200px; 16 background-color: lime; 17 transform-origin: 0px 0px; 18 offset-path: path('m 0 0 v 200'); 19 offset-distance: 120px; 20 } 21 </style> 22 </head> 23 <body> 24 <div id="target"></div> 25 </body> 26 </html>