scrollable-overflow-transform-001.html (1253B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Overflow: Scrollable Overflow Transform</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."> 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: auto; 15 background: silver; 16 border: solid thick; 17 } 18 19 .element { 20 width: 50px; 21 height: 50px; 22 background: lime; 23 } 24 </style> 25 <body onload="checkLayout('.container')"> 26 27 <div class="container" data-expected-scroll-width="250"> 28 <div style="transform: translateX(200px);" class="element"></div> 29 </div> 30 31 <div class="container" data-expected-scroll-height="350"> 32 <div style="transform: translateY(300px);" class="element"></div> 33 </div> 34 35 <div class="container" data-expected-scroll-width="250" data-expected-scroll-height="350"> 36 <div style="transform: translate(200px, 300px);" class="element"></div> 37 </div> 38 39 </body>