Index: LayoutTests/fast/events/fire-scroll-event.html |
diff --git a/LayoutTests/fast/events/fire-scroll-event.html b/LayoutTests/fast/events/fire-scroll-event.html |
index d87a9cbf91eb286d5b76da39b0234a92845ff16b..c4b7c0370d68949e117e918665169b24d94d71f8 100644 |
--- a/LayoutTests/fast/events/fire-scroll-event.html |
+++ b/LayoutTests/fast/events/fire-scroll-event.html |
@@ -12,8 +12,8 @@ onscroll = function(event) |
eventCount++; |
if (eventCount == 1) { |
debug('Scroll event bubbles: ' + event.bubbles); |
- var scrollX = document.body.scrollLeft; |
- var scrollY = document.body.scrollTop; |
+ var scrollX = document.scrollingElement.scrollLeft; |
+ var scrollY = document.scrollingElement.scrollTop; |
testPassed('Scroll position: (' + scrollX + ', ' + scrollY + ')'); |
// Don't call notifyDone straight away, in case there's another scroll event coming. |
doneTimeout = setTimeout(finishJSTest, 100); |