Index: LayoutTests/rubberbanding/momentum-reset.html |
diff --git a/LayoutTests/rubberbanding/momentum-reset.html b/LayoutTests/rubberbanding/momentum-reset.html |
index cddcdb0ce7f6842b67f678349c297bc20549b232..4f0736504c823840bb6aca11c8d834754a4ed6a0 100644 |
--- a/LayoutTests/rubberbanding/momentum-reset.html |
+++ b/LayoutTests/rubberbanding/momentum-reset.html |
@@ -21,7 +21,7 @@ |
// The momentum scroll above should have resulted in overflow above the page. |
// Ensure that it has (via scrollTop) and register an onscroll listener to |
// ensure that the timer restores the position. |
- if (document.body.scrollTop == 0) { |
+ if (document.documentElement.scrollTop == 0) { |
// FAIL: Above didn't result in overscroll. |
document.getElementById('box').style.background = 'blue'; |
return; |
@@ -32,7 +32,7 @@ |
testRunner.waitUntilDone(); |
var startedScrolling = false; |
window.onscroll = function() { |
- if (document.body.scrollTop == 0) { |
+ if (document.documentElement.scrollTop == 0) { |
testRunner.notifyDone(); |
} |
}; |