summaryrefslogtreecommitdiffstats
path: root/dom/webidl/Element.webidl
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-01-08 17:35:24 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-01-08 17:42:01 +0100
commit814e0bca313611080bd5d26c850023e06af042ab (patch)
tree7a954cca04c3e52c1a5d96314b96fdc909f9507c /dom/webidl/Element.webidl
parent29b9d4496a52e8a98b7ade9c57001126daee5608 (diff)
downloadUXP-814e0bca313611080bd5d26c850023e06af042ab.tar
UXP-814e0bca313611080bd5d26c850023e06af042ab.tar.gz
UXP-814e0bca313611080bd5d26c850023e06af042ab.tar.lz
UXP-814e0bca313611080bd5d26c850023e06af042ab.tar.xz
UXP-814e0bca313611080bd5d26c850023e06af042ab.zip
Align Element.ScrollIntoView() with the spec. (uplift)PM28.3.0_Release
This also removes the (unused) shadow alias from nsIDOMHTMLElement which used the different calling convention. This resolves #927
Diffstat (limited to 'dom/webidl/Element.webidl')
-rw-r--r--dom/webidl/Element.webidl6
1 files changed, 3 insertions, 3 deletions
diff --git a/dom/webidl/Element.webidl b/dom/webidl/Element.webidl
index 97eb4ffe0..cf17523a5 100644
--- a/dom/webidl/Element.webidl
+++ b/dom/webidl/Element.webidl
@@ -164,9 +164,10 @@ interface Element : Node {
};
// http://dev.w3.org/csswg/cssom-view/
-enum ScrollLogicalPosition { "start", "end" };
+enum ScrollLogicalPosition { "start", "center", "end", "nearest" };
dictionary ScrollIntoViewOptions : ScrollOptions {
ScrollLogicalPosition block = "start";
+ ScrollLogicalPosition inline = "nearest";
};
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface
@@ -175,8 +176,7 @@ partial interface Element {
DOMRect getBoundingClientRect();
// scrolling
- void scrollIntoView(boolean top);
- void scrollIntoView(optional ScrollIntoViewOptions options);
+ void scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg);
// None of the CSSOM attributes are [Pure], because they flush
attribute long scrollTop; // scroll on setting
attribute long scrollLeft; // scroll on setting