Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / display-inline-block-scrollbar.html
blobb02378ed03643d9157305668744c6a54ea0100ab
1 <!DOCTYPE html>
2 <script src="../../resources/check-layout.js"></script>
3 <script>
4 onload = function() {
5 document.getElementById('container').style.width = '110%';
6 document.getElementById('margin').style.left = '200px';
7 document.getElementById('container').style.width = '100%';
8 var forceLayout = document.body.offsetTop;
9 document.getElementById('margin').style.left = '12px';
10 window.checkLayout('#scrollable', document.getElementById('output'));
12 </script>
13 <style>
14 #spacer {
15 width: 100px;
16 height: 100px;
17 background: blue;
19 #scrollable {
20 background: white;
21 border: 1px solid black;
22 overflow: auto;
23 position: relative;
24 width: 250px;
26 #container {
27 position: relative;
28 display: inline-block;
29 width: 100%;
30 height: 130px;
32 #margin {
33 position: absolute;
34 width: 200px;
35 top: 12px;
36 margin-right: 12px;
37 left: 12px;
38 height: 110px;
40 </style>
41 Test for crbug.com/316549: This test passes if the scrollable div has width=250.<br/>
42 <div id="scrollable" data-expected-scroll-width="250">
43 <div id="container" style="width: 100%;">
44 <div id="margin" style="left: 12px;">
45 <div id="spacer" style="height: 100px; width: 100%;"></div>
46 </div>
47 </div>
48 </div>
49 <div id="output"></div>