offset-path-shape-xywh-002.html (867B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Motion Path test: <basic-shape> xywh() path with explicit arguments and radius</title> 4 <meta name="fuzzy" content="maxDifference=0-140; totalPixels=0-500"> 5 <link rel="author" title="Daniil Sakhapov" href="sakhapov@google.com"> 6 <link rel="match" href="offset-path-shape-xywh-002-ref.html"> 7 <link rel="help" href="https://drafts.fxtf.org/motion/#valdef-offset-path-basic-shape"> 8 9 <style> 10 #outer { 11 top: 100px; 12 left: 100px; 13 position: relative; 14 width: 400px; 15 height: 200px; 16 } 17 #box { 18 background-color: green; 19 position: relative; 20 offset-path: xywh(10% 10% 100% 100% round 50px / 50px); 21 /* Stop at the mid-point of the top-right corner */ 22 offset-distance: calc(12.5% + 200px); 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>