scrollable-overflow-transform-003.html (1371B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Overflow: Scrollable Overflow Transform Inline 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 an inline 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 display: inline-block; 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 28 <div class="container" style="top: 0px;" data-expected-scroll-width="250"> 29 <div style="transform: translateX(200px);" class="element"></div> 30 </div> 31 32 <div class="container" style="top: 150px;" data-expected-scroll-height="350"> 33 <div style="transform: translateY(300px);" class="element"></div> 34 </div> 35 36 <div class="container" style="top: 300px;" data-expected-scroll-width="250" data-expected-scroll-height="350"> 37 <div style="transform: translate(200px, 300px);" class="element"></div> 38 </div> 39 40 </body>