mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 08:27:31 +09:00
Align Element.ScrollIntoView() with the spec.
This also removes the (unused) shadow alias from nsIDOMHTMLElement which used the different calling convention. This resolves #927
This commit is contained in:
parent
83b95f2c5b
commit
14ea8bb121
5 changed files with 56 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue