| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 ::-webkit-scrollbar { | 4 ::-webkit-scrollbar { |
| 5 height: 30px; | 5 height: 30px; |
| 6 width: 30px; | 6 width: 30px; |
| 7 } | 7 } |
| 8 | 8 |
| 9 ::-webkit-scrollbar-thumb { | 9 ::-webkit-scrollbar-thumb { |
| 10 background-color: blue; | 10 background-color: blue; |
| 11 height: 30px; | 11 height: 30px; |
| 12 width: 30px; | 12 width: 30px; |
| 13 } | 13 } |
| 14 | 14 |
| 15 body { | 15 body { |
| 16 background-color: black; | 16 background-color: black; |
| 17 } | 17 } |
| 18 | 18 |
| 19 </style> | 19 </style> |
| 20 <script src="../../resources/run-after-layout-and-paint.js"></script> | 20 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 21 <script> | 21 <script> |
| 22 function test() | 22 function test() |
| 23 { | 23 { |
| 24 if (window.testRunner) { | 24 if (window.testRunner) { |
| 25 testRunner.waitUntilDone(); | 25 testRunner.waitUntilDone(); |
| 26 testRunner.dumpAsTextWithPixelResults(); | 26 testRunner.dumpAsTextWithPixelResults(); |
| 27 } | 27 } |
| 28 runAfterLayoutAndPaint(function() { | 28 runAfterLayoutAndPaint(function() { |
| 29 document.body.scrollTop = 2000; | 29 document.scrollingElement.scrollTop = 2000; |
| 30 if (window.testRunner) { | 30 if (window.testRunner) { |
| 31 testRunner.notifyDone(); | 31 testRunner.notifyDone(); |
| 32 } | 32 } |
| 33 }); | 33 }); |
| 34 } | 34 } |
| 35 </script> | 35 </script> |
| 36 </head> | 36 </head> |
| 37 <body onload="test()"> | 37 <body onload="test()"> |
| 38 <div style="height: 2000px; color: white;">PASS if blue scrollbar is at the bott
om.</div> | 38 <div style="height: 2000px; color: white;">PASS if blue scrollbar is at the bott
om.</div> |
| 39 </body> | 39 </body> |
| 40 </head> | 40 </head> |
| OLD | NEW |