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

Unified Diff: LayoutTests/fast/dom/Element/resources/scrollable-iframe-quirks.html

Issue 25741004: set and get scrollTop/Left through documentElement and body should be symmetric, according to the d… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: set and get scrollTop/Left through documentElement and body should be symmetric, according to the d… 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/fast/dom/Element/resources/scrollable-iframe-quirks.html
diff --git a/LayoutTests/fast/dom/Element/resources/scrollable-iframe-quirks.html b/LayoutTests/fast/dom/Element/resources/scrollable-iframe-quirks.html
index 59f30882cb55d6c6dea792fb762e46e3c8737d25..7999071adac1fede3f578f95478e299a3936bb76 100644
--- a/LayoutTests/fast/dom/Element/resources/scrollable-iframe-quirks.html
+++ b/LayoutTests/fast/dom/Element/resources/scrollable-iframe-quirks.html
@@ -7,7 +7,15 @@
</style>
<script>
function scroll() {
- window.scrollTo(4000,5000);
+ document.body.scrollTop = 5000;
+ document.body.scrollLeft = 4000;
+
+ // The calls below should not take effect, given
+ // that setting scrollTop/Left on the root node
+ // is no-op in quirks-mode.
+ document.documentElement.scrollTop = 1;
+ document.documentElement.scrollLeft = 1;
+
parent.verifyTest()
}
</script>
« no previous file with comments | « LayoutTests/fast/css/zoom-body-scroll.html ('k') | LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698