scroll-marker-group-020.html (1055B)
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://issues.chromium.org/issues/395798192"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 7 <style> 8 body { 9 overflow: hidden; 10 } 11 #sc { 12 position: absolute; 13 margin-top: 50px; 14 width: 100px; 15 overflow: hidden; 16 scroll-marker-group: after; 17 } 18 #sc::scroll-marker-group { 19 width: 100px; 20 height: 50px; 21 background: red; 22 } 23 #sc > div::scroll-marker { 24 display: block; 25 content: ""; 26 height: 50px; 27 background: green; 28 } 29 </style> 30 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 31 <div style="width:100px; height:100px; background:red;"> 32 <div id="sc"> 33 <div></div> 34 <div style="height:50px; background:green;"></div> 35 </div> 36 </div>