From d74d18675c698866dbe158ac2093412323a7e3f3 Mon Sep 17 00:00:00 2001 From: "ajuma@chromium.org" Date: Mon, 8 Dec 2014 20:02:01 +0000 Subject: Update Element API for CSSOM smooth scrolling to match the spec This updates the Element API for smooth scrolling to match changes to the CSSOM View spec. Previously, the spec overloaded the setters for scrollTop and scrollLeft, allowing these to take a ScrollOptions dictionary. Now, the spec instead adds scroll, scrollTo, and scrollBy methods that each take either a pair of doubles or a single ScrollToOptions dictionary (just like the corresponding methods on Window). Smooth scrolling is behing a runtime flag. Spec: http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface BUG=243871 Review URL: https://codereview.chromium.org/782793002 git-svn-id: svn://svn.chromium.org/blink/trunk@186725 bbb929c8-8fbe-4397-9dbb-9b2b20218538 --- .../scroll-behavior/overflow-scroll-scrollBy.html | 94 ++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 third_party/WebKit/LayoutTests/fast/scroll-behavior/overflow-scroll-scrollBy.html (limited to 'third_party/WebKit/LayoutTests/fast/scroll-behavior/overflow-scroll-scrollBy.html') diff --git a/third_party/WebKit/LayoutTests/fast/scroll-behavior/overflow-scroll-scrollBy.html b/third_party/WebKit/LayoutTests/fast/scroll-behavior/overflow-scroll-scrollBy.html new file mode 100644 index 0000000..291eb2a --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/scroll-behavior/overflow-scroll-scrollBy.html @@ -0,0 +1,94 @@ + + + + + + + + + + + +

Test that calling scrollBy on an overflow:scroll element works with both scroll behaviors

+
+
+
+ + -- cgit v1.1