scrollable-overflow-with-nested-elements-003.html (1150B)
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 body { 12 overflow-x: hidden; 13 } 14 15 .list .item { 16 width: 10px; 17 height: 10px; 18 background: lime; 19 position: absolute; 20 margin: 0%; 21 } 22 23 .list { 24 position: relative; 25 background: grey; 26 } 27 </style> 28 29 <body onload="checkLayout('body')" data-expected-scroll-height="1010" data-expected-height="0" data-expected-client-height="0"> 30 <div class="list" data-expected-scroll-height="1010" data-expected-height="0"> 31 <p class="item" style="top:0px;"></p> 32 <p class="item" style="top:1000px;"></p> 33 </div> 34 </body>