position-visibility-anchors-visible-both-position-fixed-ref.html (272B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <style> 4 #target { 5 width: 100px; 6 height: 100px; 7 background: green; 8 position: fixed; 9 top: 0; 10 left: 100px; 11 } 12 13 #spacer { 14 height: 200vh; 15 } 16 </style> 17 <div id="target">target</div> 18 <div id="spacer"></div>