tor-browser

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

scrollable-overflow-with-nested-elements-002.html (1972B)


      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 of parent with overflow auto 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        background: silver;
     15        scrollbar-width: none;
     16    }
     17 
     18    .list .item {
     19        width: 10px;
     20        height: 10px;
     21        background: lime;
     22        position: absolute;
     23        margin: 0%;
     24    }
     25 
     26    .list {
     27        position: relative;
     28        background: grey;
     29        scrollbar-width: none;
     30    }
     31 </style>
     32 
     33 <body onload="checkLayout('.container')">
     34    <div class="container" style="overflow-x: hidden;" data-expected-scroll-height="1010" data-expected-height="100" data-expected-width="100">
     35        <div class="list" data-expected-scroll-height="1010"
     36            data-expected-bounding-client-rect-height="0" data-expected-bounding-client-rect-width="100"
     37            data-expected-height="0" data-expected-width="100">
     38            <p class="item" style="top:0px;"></p>
     39            <p class="item" style="top:1000px;"></p>
     40        </div>
     41    </div>
     42    <div class="container" data-expected-scroll-height="1010" data-expected-height="100" data-expected-width="100">
     43        <div class="list" data-expected-scroll-height="1010"
     44            data-expected-bounding-client-rect-height="0" data-expected-bounding-client-rect-width="100"
     45            data-expected-height="0" data-expected-width="100">
     46            <p class="item" style="top:0px;"></p>
     47            <p class="item" style="top:1000px;"></p>
     48        </div>
     49    </div>
     50 </body>