scrollable-overflow-transform-002.html (1438B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Overflow: Scrollable Overflow Transform Positioned Element</title> 4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-overflow-3/#scrollable" /> 6 <meta name="assert" content="Checks that elements with transform contribute to the scrollable overflow on a positioned 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 position: absolute; 13 width: 100px; 14 height: 100px; 15 overflow: auto; 16 background: silver; 17 border: solid thick; 18 } 19 20 .element { 21 width: 50px; 22 height: 50px; 23 background: lime; 24 } 25 </style> 26 <body onload="checkLayout('.container')"> 27 <div style="position: relative;"> 28 29 <div class="container" style="top: 0px;" data-expected-scroll-width="250"> 30 <div style="transform: translateX(200px);" class="element"></div> 31 </div> 32 33 <div class="container" style="top: 150px;" data-expected-scroll-height="350"> 34 <div style="transform: translateY(300px);" class="element"></div> 35 </div> 36 37 <div class="container" style="top: 300px;" data-expected-scroll-width="250" data-expected-scroll-height="350"> 38 <div style="transform: translate(200px, 300px);" class="element"></div> 39 </div> 40 41 </div> 42 </body>