OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <link href="resources/grid.css" rel="stylesheet"> | |
4 <style> | |
5 .grid { | |
6 position:absolute; | |
7 overflow:scroll; | |
8 } | |
9 .gridItem { | |
10 width: 100px; | |
11 height: 100px; | |
12 background:green; | |
13 } | |
14 </style> | |
15 <script src="../../resources/check-layout.js"></script> | |
16 <body onload="checkLayout('.grid')"> | |
17 | |
18 Test that scrollbar width is added to the width of the grid container. | |
19 <div class='grid' style='top: 100px' data-expected-width='115'> | |
Julien - ping for review
2014/09/10 16:06:54
I don't think we need the position: absolute and t
Sunil Ratnu
2014/09/11 10:59:44
I think we need it because when I tried testing af
Julien - ping for review
2014/11/19 23:28:40
You don't *need* position per se. What you want is
| |
20 <span class='gridItem'></span> | |
21 </div> | |
22 | |
23 <div class='grid' style='top: 100px; left: 150px; overflow-y: hidden' data-expec ted-width='100'> | |
24 <span class='gridItem'></span> | |
25 </div> | |
26 | |
27 </body> | |
28 </html> | |
OLD | NEW |