2 <script src=
"../../resources/check-layout.js"></script>
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'));
21 border:
1px solid black;
28 display: inline-block;
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>
49 <div id=
"output"></div>