offset-path-coord-box-001-ref.html (562B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Motion Path test reference: <coord-box> <border-box></title> 4 <link rel="author" title="Daniil Sakhapov" href="sakhapov@google.com"> 5 6 <style> 7 #outer { 8 top: 100px; 9 left: 100px; 10 position: relative; 11 border-radius: 50%; 12 border: 10px solid black; 13 width: 400px; 14 height: 400px; 15 } 16 #box { 17 background-color: green; 18 position: relative; 19 top: 100px; 20 left: 100px; 21 transform: translate(260px, 50px); 22 width: 100px; 23 height: 100px; 24 } 25 </style> 26 27 <div id="outer"> 28 <div id="box"></div> 29 </div>