offset-path-shape-ellipse-006.html (912B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Motion Path test: <basic-shape> ellipse() path with offset from container</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="match" href="offset-path-shape-ellipse-003-ref.html"> 8 <link rel="help" href="https://drafts.fxtf.org/motion/#valdef-offset-path-basic-shape"> 9 10 <style> 11 #outer { 12 top: 100px; 13 left: 100px; 14 position: relative; 15 width: 400px; 16 height: 200px; 17 } 18 #box { 19 top: 100px; 20 left: 100px; 21 background-color: green; 22 position: relative; 23 offset-path: ellipse(farthest-side farthest-side at top); 24 offset-distance: 37.5%; 25 border-radius: 50% 50% 0 0; 26 width: 100px; 27 height: 100px; 28 } 29 </style> 30 31 <div id="outer"> 32 <div id="box"></div> 33 </div>