tor-browser

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

offset-path-shape-ellipse-003.html (948B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Motion Path test: &lt;basic-shape&gt; ellipse() path with offset-distance</title>
      4 <!-- Chrome currently passes with 13 max pixel difference and 473 total different pixels -->
      5 <!-- You can increase the numbers to handle anti-aliasing -->
      6 <meta name="fuzzy" content="maxDifference=0-150; totalPixels=0-530">
      7 <link rel="author" title="Daniil Sakhapov" href="sakhapov@google.com">
      8 <link rel="match" href="offset-path-shape-ellipse-003-ref.html">
      9 <link rel="help" href="https://drafts.fxtf.org/motion/#valdef-offset-path-basic-shape">
     10 
     11 <style>
     12 #outer {
     13  top: 100px;
     14  left: 100px;
     15  position: relative;
     16  width: 400px;
     17  height: 200px;
     18 }
     19 #box {
     20  background-color: green;
     21  position: relative;
     22  offset-path: ellipse(farthest-side farthest-side at top);
     23  offset-distance: 37.5%;
     24  border-radius: 50% 50% 0 0;
     25  width: 100px;
     26  height: 100px;
     27 }
     28 </style>
     29 
     30 <div id="outer">
     31  <div id="box"></div>
     32 </div>