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

Unified Diff: LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html

Issue 774203003: Update Window API for CSSOM smooth scrolling to match the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update expected results Created 6 years 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/scroll-behavior/subframe-interrupted-scroll.html
diff --git a/LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html b/LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html
index d264e4f9817479958495dc390206772eeec62cf2..398425943ca582052cfd8ed00b679608ad26512a 100644
--- a/LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html
+++ b/LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html
@@ -13,8 +13,7 @@
<script type="text/javascript">
function jsScroll(y) {
var subframe = document.getElementById('subframe');
- var currentX = subframe.contentDocument.documentElement.scrollTop;
- subframe.contentWindow.scrollTo(currentX, y, {behavior: 'smooth'});
+ subframe.contentWindow.scrollTo({top: y, behavior: 'smooth'});
}
function doTest()

Powered by Google App Engine
This is Rietveld 408576698