tor-browser

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

scroll-marker-005.html (1290B)


      1 <!DOCTYPE html>
      2 <title>CSS Overflow Test: scroll markers inside out-of-flow</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-marker-group">
      4 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      5 <style>
      6  .container {
      7    scroll-marker-group: before;
      8    overflow: hidden;
      9  }
     10 
     11  .container::scroll-marker-group {
     12    display: flex;
     13    height: 100px;
     14  }
     15 
     16  .marker::scroll-marker {
     17    display: block;
     18    width: 20px;
     19    height: 100px;
     20    content: "";
     21    background: green;
     22  }
     23 
     24  .contain_abs {
     25    position: relative;
     26  }
     27 
     28  .contain_all {
     29    contain: layout;
     30  }
     31 
     32  .uncontained::scroll-marker {
     33    z-index: 100;
     34    content: "ERROR";
     35    background: red;
     36  }
     37 </style>
     38 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     39 <div class="container">
     40  <div class="marker"></div>
     41  <div class="marker" class="contain_abs"></div>
     42  <div style="position:absolute;">
     43    <div class="uncontained marker"></div>
     44  </div>
     45  <div class="contain_all">
     46    <div class="marker" style="position:fixed;"></div>
     47  </div>
     48  <div class="contain_abs">
     49    <div class="marker"></div>
     50    <div class="marker" style="position:absolute;"></div>
     51    <div class="uncontained marker" style="position:fixed;"></div>
     52  </div>
     53 </div>