offset-path-coord-box-003.html (710B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Motion Path test: <coord-box> <content-box></title> 4 <link rel="author" title="Daniil Sakhapov" href="sakhapov@google.com"> 5 <link rel="match" href="offset-path-coord-box-003-ref.html"> 6 <link rel="help" href="https://drafts.fxtf.org/motion/#valdef-offset-path-coord-box"> 7 8 <style> 9 #outer { 10 top: 100px; 11 left: 100px; 12 position: relative; 13 border: 10px solid black; 14 padding: 10px; 15 width: 600px; 16 height: 400px; 17 } 18 #box { 19 background-color: green; 20 top: 100px; 21 left: 100px; 22 position: relative; 23 offset-path: content-box; 24 offset-distance: 15%; 25 width: 100px; 26 height: 100px; 27 } 28 </style> 29 30 <div id="outer"> 31 <div id="box"></div> 32 </div>