Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: LayoutTests/rubberbanding/momentum-reset.html

Issue 25039006: document.documentElement.scrollTop/Left is zero (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: document.documentElement.scrollTop/Left is zero Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}
};

Powered by Google App Engine
This is Rietveld 408576698