offset-path-shape-ellipse-007.html (742B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Motion Path test: <basic-shape> ellipse() path offset-position</title> 4 <meta name="fuzzy" content="maxDifference=0-100; totalPixels=0-401"> 5 <link rel="match" href="offset-path-shape-ellipse-001-ref.html"> 6 <link rel="help" href="https://drafts.fxtf.org/motion/#valdef-offset-path-basic-shape"> 7 8 <style> 9 #outer { 10 top: 100px; 11 left: 100px; 12 position: relative; 13 width: 600px; 14 height: 400px; 15 } 16 #box { 17 top: 100px; 18 left: 200px; 19 background-color: green; 20 position: relative; 21 offset-path: ellipse(); 22 offset-distance: 25%; 23 border-radius: 50% 50% 0 0; 24 offset-position: 300px 200px; 25 width: 100px; 26 height: 100px; 27 } 28 </style> 29 30 <div id="outer"> 31 <div id="box"></div> 32 </div>