mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:27:35 +00:00
LibWeb/HTML: Port Window.scroll() to IDL
...with various changes required due to ScrollBehavior / ScrollOptions moving from Element.idl to Window.idl.
This commit is contained in:
parent
40b4ee88de
commit
2b6d9cca1a
5 changed files with 126 additions and 79 deletions
|
@ -11,11 +11,7 @@
|
|||
#import <DOM/ShadowRoot.idl>
|
||||
#import <Geometry/DOMRect.idl>
|
||||
#import <Geometry/DOMRectList.idl>
|
||||
|
||||
enum ScrollBehavior { "auto", "smooth" };
|
||||
dictionary ScrollOptions {
|
||||
ScrollBehavior behavior = "auto";
|
||||
};
|
||||
#import <HTML/Window.idl>
|
||||
|
||||
enum ScrollLogicalPosition { "start", "center", "end", "nearest" };
|
||||
dictionary ScrollIntoViewOptions : ScrollOptions {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue