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

Unified Diff: LayoutTests/fast/css/zoom-body-scroll.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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Element/resources/scrollable-iframe-quirks.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/zoom-body-scroll.html
diff --git a/LayoutTests/fast/css/zoom-body-scroll.html b/LayoutTests/fast/css/zoom-body-scroll.html
index fce7b4c4b2ade6f98a0b79c27799164ae8a516e2..7e114d2bf6e4988ad538cf974c4d90375f547e86 100644
--- a/LayoutTests/fast/css/zoom-body-scroll.html
+++ b/LayoutTests/fast/css/zoom-body-scroll.html
@@ -18,28 +18,29 @@
if (window.testRunner) {
testRunner.dumpAsText();
var body = document.body;
+ var documentElement = document.documentElement;
log("scrollHeight: " + body.scrollHeight);
log("scrollWidth: " + body.scrollWidth);
log("\nScrolling right to 50");
body.scrollLeft = 50;
- log("scrollLeft: " + body.scrollLeft);
+ log("scrollLeft: " + documentElement.scrollLeft);
log("\nZooming in");
eventSender.zoomPageIn();
log("scrollHeight: " + body.scrollHeight);
log("scrollWidth: " + body.scrollWidth);
- log("scrollTop: " + body.scrollTop);
- log("scrollLeft: " + body.scrollLeft);
+ log("scrollTop: " + documentElement.scrollTop);
+ log("scrollLeft: " + documentElement.scrollLeft);
log("\nScrolling down to 100");
body.scrollTop = 100;
- log("scrollTop: " + body.scrollTop);
+ log("scrollTop: " + documentElement.scrollTop);
log("\nZooming back out");
eventSender.zoomPageOut();
- log("scrollTop: " + body.scrollTop);
- log("scrollLeft: " + body.scrollLeft);
+ log("scrollTop: " + documentElement.scrollTop);
+ log("scrollLeft: " + documentElement.scrollLeft);
}
</script>
</body>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Element/resources/scrollable-iframe-quirks.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698