tor-browser

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

scroll-marker-group-019.html (1202B)


      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: fixed;
     13    margin-top: 50px;
     14    width: 100px;
     15    overflow: hidden;
     16    scroll-marker-group: after;
     17  }
     18  #sc::scroll-marker-group {
     19    position: absolute;
     20    left: 0px;
     21    width: 110px;
     22    background: red;
     23  }
     24  #sc > div::scroll-marker {
     25    position: absolute;
     26    top: 0;
     27    content: "";
     28    width: 50px;
     29    height: 50px;
     30    background: green;
     31  }
     32  #sc > div:last-child::scroll-marker {
     33    right: 10px;
     34  }
     35 </style>
     36 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     37 <div style="position:relative; width:100px; height:100px; background:red;">
     38  <div id="sc">
     39    <div></div>
     40    <div></div>
     41    <div style="height:50px; background:green;"></div>
     42  </div>
     43 </div>