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

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

Issue 25767003: Revert "document.documentElement.scrollTop/Left is zero" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 4f0736504c823840bb6aca11c8d834754a4ed6a0..cddcdb0ce7f6842b67f678349c297bc20549b232 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.documentElement.scrollTop == 0) {
+ if (document.body.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.documentElement.scrollTop == 0) {
+ if (document.body.scrollTop == 0) {
testRunner.notifyDone();
}
};

Powered by Google App Engine
This is Rietveld 408576698