OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <link rel="stylesheet" href="../../resources/testharness.css"> |
| 6 <head> |
| 7 <style> |
| 8 ::-webkit-scrollbar { |
| 9 -webkit-appearance: none; |
| 10 width: 8px; |
| 11 } |
| 12 |
| 13 * { |
| 14 margin: 0; |
| 15 padding: 0; |
| 16 } |
| 17 |
| 18 #makespace { |
| 19 height: 5000px; |
| 20 } |
| 21 </style> |
| 22 </head> |
| 23 <body> |
| 24 <div id="makespace"></div> |
| 25 <div id="measure"></div> |
| 26 <script> |
| 27 if (window.testRunner) |
| 28 testRunner.dumpAsText(); |
| 29 |
| 30 if (window.internals) |
| 31 window.internals.setUsesOverlayScrollbars(true); // Note: We force non-o
verlay scrollbars with CSS. |
| 32 |
| 33 var test = async_test("Test that partial layout works with non-overlay scrol
lbars."); |
| 34 setTimeout(function() { |
| 35 test.step(function() { |
| 36 var measure = document.getElementById('measure'); |
| 37 var measureWidth = measure.offsetWidth; // Partial layout occurs her
e! |
| 38 |
| 39 assert_equals(measureWidth, document.body.offsetWidth); |
| 40 assert_equals(measureWidth, window.innerWidth - 8); |
| 41 }); |
| 42 |
| 43 test.done(); |
| 44 }, 0); |
| 45 </script> |
| 46 </body> |
| 47 </html> |
OLD | NEW |