offset-path-coord-box-002.html (693B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Motion Path test: <coord-box> <padding-box></title> 4 <link rel="author" title="Daniil Sakhapov" href="sakhapov@google.com"> 5 <link rel="match" href="offset-path-coord-box-002-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 width: 600px; 15 height: 400px; 16 } 17 #box { 18 background-color: green; 19 position: relative; 20 top: 100px; 21 left: 100px; 22 offset-path: padding-box; 23 offset-distance: 15%; 24 width: 100px; 25 height: 100px; 26 } 27 </style> 28 29 <div id="outer"> 30 <div id="box"></div> 31 </div>