| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 3 <script> |
| 4 if (window.testRunner) |
| 5 testRunner.dumpAsText(); |
| 6 onload = function() { |
| 7 // Expose left part of the inner horizontal scrollbar first. |
| 8 document.getElementById('outer').scrollTop = 250; |
| 9 runAfterLayoutAndPaint(function() { |
| 10 // Expose the forward track and forward button of the inner horizontal scrol
lbar. |
| 11 document.getElementById('outer').scrollLeft = 250; |
| 12 }, true); |
| 13 }; |
| 14 </script> |
| 15 Tests invalidation and painting of scrollbar parts of a scroll area contained by
another scroll area, when scrolling of the outer scroll area exposes a new port
of the inner scrollbar. Passes if no assertion failure. |
| 16 <div id="outer" style="position: absolute; top: 100px; left: 50px; width: 200px;
height: 200px; overflow: scroll"> |
| 17 <div id="inner" style="width: 400px; height: 400px; overflow: scroll"> |
| 18 <div style="height: 500px; width: 100%; border: 1px solid black">PASS</div> |
| 19 </div> |
| 20 </div> |
| OLD | NEW |