tor-browser

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

offset-path-shape-polygon-003.html (787B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Motion Path test: &lt;basic-shape&gt; polygon() path with points as percentage and pixels</title>
      4 <meta name=fuzzy content="0-20;0-56">
      5 <link rel="author" title="Daniil Sakhapov" href="sakhapov@google.com">
      6 <link rel="match" href="offset-path-shape-polygon-003-ref.html">
      7 <link rel="help" href="https://drafts.fxtf.org/motion/#valdef-offset-path-basic-shape">
      8 
      9 <style>
     10 #outer {
     11  top: 100px;
     12  left: 100px;
     13  position: relative;
     14  width: 600px;
     15  height: 400px;
     16 }
     17 #box {
     18  background-color: green;
     19  position: relative;
     20  offset-path: polygon(0% 0%, 300px 200px, 100% 0px, 100% 100%, 0px 100%);
     21  offset-distance: 30%;
     22  offset-anchor: 10px 5%;
     23  width: 100px;
     24  height: 100px;
     25 }
     26 </style>
     27 
     28 <div id="outer">
     29  <div id="box"></div>
     30 </div>