| background-image: linear-gradient(white, gray) |
| testRunner.waitUntilDone(); |
| document.getElementById('result').textContent += s + "\n"; |
| var divId = event.target.id; |
| if (divId == "divBottom") |
| logResult('PASS: scrolled happened in the bottom div'); |
| logResult('FAIL: scrolled happened in the top div'); |
| var externalScrollableArea = document.getElementById('externalScrollableArea'); |
| var externalScrollableAreaBounds = externalScrollableArea.getBoundingClientRect(); |
| logResult('Sending mouse events'); |
| eventSender.mouseMoveTo(externalScrollableAreaBounds.left + 60, externalScrollableAreaBounds.bottom - 60); |
| eventSender.mouseScrollBy(0, -10); |
| var externalScrollableArea = document.getElementById('externalScrollableArea'); |
| externalScrollableArea.scrollTop = externalScrollableArea.scrollHeight; |
| setTimeout(scrollTest, 0); |
| window.addEventListener('load', startTest, false); |
| <div id="externalScrollableArea" style="overflow: scroll; width: 200px; height: 200px;"> |
| <div class="content" id="divTop" onscroll="scrolled()"> |
| <div class="content" id="divBottom" onscroll="scrolled()"> |