tor-browser

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

scrollable-overflow-with-nested-elements-004.html (1451B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: Scrollable Overflow Transform Rotate Nested Element</title>
      4 <link rel="author" title="Shubham Gupta" href="mailto:shubham13297@gmail.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-overflow-3/#scrollable" />
      6 <meta name="assert" content="Checks the scrollable overflow with overflow property and some nested element">
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script src="/resources/check-layout-th.js"></script>
     10 <style>
     11    .container {
     12        width: 100px;
     13        height: 100px;
     14        overflow-x: hidden;
     15        background: silver;
     16        scrollbar-width: none;
     17    }
     18 
     19    .list .item {
     20        width: 10px;
     21        height: 10px;
     22        background: lime;
     23        position: absolute;
     24        margin: 0%;
     25    }
     26 
     27    .list {
     28        position: relative;
     29        background: grey;
     30    }
     31 </style>
     32 
     33 <body onload="checkLayout('body')" data-expected-scroll-height="100" data-expected-height="100">
     34    <div class="container" data-expected-scroll-height="1010"
     35    data-expected-height="100" data-expected-width="100"
     36        data-expected-client-height="100" data-expected-client-width="100">
     37        <div class="list" data-expected-scroll-height="1010" data-expected-height="0">
     38            <p class="item" style="top:0px;"></p>
     39            <p class="item" style="top:1000px;"></p>
     40        </div>
     41    </div>
     42 </body>