tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

offset-path-url-005.html (976B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS Motion Path: offset-path:url() to lines</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#LineElement">
      7    <link rel="match" href="offset-path-url-001-ref.html">
      8    <meta name="assert" content="This tests that url() referenced to a line
      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(#svgLine);
     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      <line id="svgLine" x1="75" y1="0" x2="75" y2="170"/>
     31    </svg>
     32  </body>
     33 </html>