tor-browser

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

scroll-marker-counters.html (835B)


      1 <!DOCTYPE html>
      2 <title>CSS Overflow Test: ::scroll-marker counters</title>
      3 <link rel="match" href="scroll-marker-counters-ref.html">
      4 <link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-marker-pseudo">
      5 <style>
      6  #scroller {
      7    overflow: hidden;
      8    scroll-marker-group: after;
      9    counter-reset: item;
     10    height: 100px;
     11    width: 100px;
     12  }
     13 
     14  #scroller::scroll-marker-group {
     15    border: 3px solid black;
     16    display: flex;
     17    height: 100px;
     18    width: 300px;
     19  }
     20 
     21  .item {
     22    height: 100px;
     23    width: 100px;
     24  }
     25 
     26  .item::scroll-marker {
     27    content: counter(item);
     28    counter-increment: item;
     29    background-color: green;
     30    border-radius: 50%;
     31    height: 100px;
     32    width: 100px;
     33  }
     34 </style>
     35 <div id="scroller">
     36  <div class="item">1</div>
     37  <div class="item">2</div>
     38  <div class="item">3</div>
     39 </div>