tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

scroll-marker-group-016.html (1171B)


      1 <!DOCTYPE html>
      2 <title>Absolutely-positioned scroll-marker-group - no size containment implied</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    anchor-name: --a;
     11    overflow: hidden;
     12    width: 200px;
     13    height: 50px;
     14    scroll-marker-group: before;
     15  }
     16  #sc::scroll-marker-group {
     17    position: absolute;
     18    position-anchor: --a;
     19    position-area: bottom center;
     20    background: red;
     21  }
     22  #sc > div::scroll-marker {
     23    float: left;
     24    content: "";
     25    width: 50px;
     26    height: 50px;
     27    background: green;
     28  }
     29 </style>
     30 
     31 <div style="display:flow-root; width:100px; height:100px; background:red;">
     32  <div id="sc" style="margin-left:-50px;">
     33    <div style="margin:auto; width:100px; height:50px; background:green;"></div>
     34    <div></div>
     35  </div>
     36 </div>