aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/Element.webidl
diff options
context:
space:
mode:
authorZhen Zhang <izgzhen@gmail.com>2016-04-14 15:19:12 +0800
committerZhen Zhang <izgzhen@gmail.com>2016-04-20 08:29:17 +0800
commit11b12f677b14516e92b02c0ded30310b6d6a7f96 (patch)
tree6b7e126a753ced2998ad7728dab06445962480ed /components/script/dom/webidls/Element.webidl
parentfefdaf76ded7675c0c67fd33f5abfbb5f74ac30f (diff)
downloadservo-11b12f677b14516e92b02c0ded30310b6d6a7f96.tar.gz
servo-11b12f677b14516e92b02c0ded30310b6d6a7f96.zip
element scroll setters
Diffstat (limited to 'components/script/dom/webidls/Element.webidl')
-rw-r--r--components/script/dom/webidls/Element.webidl7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/dom/webidls/Element.webidl b/components/script/dom/webidls/Element.webidl
index b161a782a55..19cb67e8cb9 100644
--- a/components/script/dom/webidls/Element.webidl
+++ b/components/script/dom/webidls/Element.webidl
@@ -81,6 +81,13 @@ partial interface Element {
DOMRectList getClientRects();
DOMRect getBoundingClientRect();
+ void scroll(optional ScrollToOptions options);
+ void scroll(unrestricted double x, unrestricted double y);
+
+ void scrollTo(optional ScrollToOptions options);
+ void scrollTo(unrestricted double x, unrestricted double y);
+ void scrollBy(optional ScrollToOptions options);
+ void scrollBy(unrestricted double x, unrestricted double y);
attribute unrestricted double scrollTop;
attribute unrestricted double scrollLeft;
readonly attribute long scrollWidth;