offset-path-shape-circle-006.html (696B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Motion Path test: <basic-shape> circle() path with border radius on container</title> 4 <meta name="fuzzy" content="maxDifference=0-100; totalPixels=0-500" /> 5 <link rel="match" href="offset-path-shape-circle-005-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 border-radius: 50%; 16 } 17 #box { 18 background-color: green; 19 position: relative; 20 offset-path: circle(100px); 21 offset-position: normal; 22 width: 100px; 23 height: 100px; 24 } 25 </style> 26 27 <div id="outer"> 28 <div id="box"></div> 29 </div>