offset-path-url-006.html (989B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Motion Path: offset-path:url() to polylines</title> 5 <link rel="help" href="https://drafts.fxtf.org/motion/#valdef-offset-path-url"> 6 <link rel="help" href="https://svgwg.org/svg2-draft/shapes.html#PolylineElement"> 7 <link rel="match" href="offset-path-url-001-ref.html"> 8 <meta name="assert" content="This tests that url() referenced to a polyline 9 generates a rotation and translation."> 10 <style> 11 #outer { 12 width: 400px; 13 height: 200px; 14 } 15 #target { 16 width: 50px; 17 height: 50px; 18 background-color: green; 19 offset-path: url(#svgPolyline); 20 offset-distance: 50%; 21 border-radius: 50% 50% 0 0; 22 } 23 </style> 24 </head> 25 <body> 26 <div id="outer"> 27 <div id="target"></div> 28 </div> 29 <svg width="400" height="200" xmlns="http://www.w3.org/2000/svg"> 30 <polyline id="svgPolyline" points="75,0 75,170"/> 31 </svg> 32 </body> 33 </html>