offset-path-shape-rect-003.html (783B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Motion Path test: offset-path:rect() path with explicit arguments and padding-box</title> 4 <link rel="match" href="offset-path-shape-rect-003-ref.html"> 5 <link rel="help" href="https://drafts.fxtf.org/motion/#valdef-offset-path-basic-shape"> 6 <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-rect"> 7 8 <style> 9 #outer { 10 top: 100px; 11 left: 100px; 12 position: relative; 13 width: 200px; 14 height: 100px; 15 padding: 50px; 16 border: 50px solid black; 17 } 18 #box { 19 background-color: green; 20 position: relative; 21 offset-path: rect(auto auto 50% 10px) padding-box; 22 offset-distance: 40%; 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>