offset-path-ray-016.html (741B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Motion Path test: ray() path with content-box</title> 4 <link rel="match" href="offset-path-ray-016-ref.html"> 5 <link rel="help" href="https://drafts.fxtf.org/motion/#ray-function"> 6 7 <style> 8 #outer { 9 top: 100px; 10 left: 100px; 11 position: relative; 12 width: 200px; 13 height: 200px; 14 padding: 50px; 15 border: 50px solid black; 16 } 17 #box { 18 background-color: green; 19 offset-path: ray(0deg sides at 0% 0%) content-box; 20 offset-rotate: 0deg; 21 offset-anchor: 0% 0%; 22 width: 100px; 23 height: 100px; 24 background-color: green; 25 } 26 </style> 27 28 <div id="outer"> 29 <div style="width: 100px; height: 100px; background-color: red;"></div> 30 <div id="box"></div> 31 </div>