scroll-marker-group-017.html (1170B)
1 <!DOCTYPE html> 2 <title>Absolutely-positioned scroll-marker-group with fixed-positioned scroll markers</title> 3 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 4 <link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-marker-group-property"> 5 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11166#issuecomment-2607753417"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 7 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 8 <style> 9 #sc { 10 position: absolute; 11 overflow: hidden; 12 scroll-marker-group: before; 13 } 14 #sc::scroll-marker-group { 15 position: absolute; 16 top: 50px; 17 left: 0px; 18 width: 110px; 19 background: red; 20 } 21 #sc > div::scroll-marker { 22 position: fixed; 23 top: 0; 24 content: ""; 25 width: 50px; 26 height: 50px; 27 background: green; 28 } 29 #sc > div:last-child::scroll-marker { 30 right: 10px; 31 } 32 </style> 33 34 <div style="position:relative; width:100px; height:100px; background:red;"> 35 <div style="height:50px; background:green;"></div> 36 <div id="sc"> 37 <div></div> 38 <div></div> 39 </div> 40 </div>