offset-path-shape-circle-007.html (738B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Motion Path test: <basic-shape> circle() path with offset from container</title> 4 <meta name="fuzzy" content="maxDifference=0-170; totalPixels=0-550"> 5 <link rel="match" href="offset-path-shape-circle-003-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: 100px; 19 background-color: green; 20 position: relative; 21 offset-path: circle(farthest-side at top); 22 offset-distance: 18%; 23 border-radius: 50% 50% 0 0; 24 width: 100px; 25 height: 100px; 26 } 27 </style> 28 29 <div id="outer"> 30 <div id="box"></div> 31 </div>