@@ -3675,6 +3675,13 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
36753675 getElementsByClassName(classNames: string): NodeListOf<Element>;
36763676 matches(selector: string): boolean;
36773677 closest(selector: string): Element | null;
3678+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
3679+ scroll(options?: ScrollToOptions): void;
3680+ scroll(x: number, y: number): void;
3681+ scrollTo(options?: ScrollToOptions): void;
3682+ scrollTo(x: number, y: number): void;
3683+ scrollBy(options?: ScrollToOptions): void;
3684+ scrollBy(x: number, y: number): void;
36783685 insertAdjacentElement(position: string, insertedElement: Element): Element | null;
36793686 insertAdjacentHTML(where: string, html: string): void;
36803687 insertAdjacentText(where: string, text: string): void;
@@ -4625,7 +4632,6 @@ interface HTMLElement extends Element {
46254632 dragDrop(): boolean;
46264633 focus(): void;
46274634 msGetInputContext(): MSInputMethodContext;
4628- scrollIntoView(top?: boolean): void;
46294635 setActive(): void;
46304636 addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
46314637 addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -13002,6 +13008,9 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1300213008 webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
1300313009 webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
1300413010 webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
13011+ scroll(options?: ScrollToOptions): void;
13012+ scrollTo(options?: ScrollToOptions): void;
13013+ scrollBy(options?: ScrollToOptions): void;
1300513014 addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
1300613015 addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
1300713016 addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -14029,6 +14038,20 @@ interface ProgressEventInit extends EventInit {
1402914038 total?: number;
1403014039}
1403114040
14041+ interface ScrollOptions {
14042+ behavior?: ScrollBehavior;
14043+ }
14044+
14045+ interface ScrollToOptions extends ScrollOptions {
14046+ left?: number;
14047+ top?: number;
14048+ }
14049+
14050+ interface ScrollIntoViewOptions extends ScrollOptions {
14051+ block?: ScrollLogicalPosition;
14052+ inline?: ScrollLogicalPosition;
14053+ }
14054+
1403214055interface ClipboardEventInit extends EventInit {
1403314056 data?: string;
1403414057 dataType?: string;
@@ -14425,6 +14448,9 @@ declare function webkitCancelAnimationFrame(handle: number): void;
1442514448declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
1442614449declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
1442714450declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
14451+ declare function scroll(options?: ScrollToOptions): void;
14452+ declare function scrollTo(options?: ScrollToOptions): void;
14453+ declare function scrollBy(options?: ScrollToOptions): void;
1442814454declare function toString(): string;
1442914455declare function addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
1443014456declare function dispatchEvent(evt: Event): boolean;
@@ -14580,6 +14606,8 @@ type MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;
1458014606type RTCIceGatherCandidate = RTCIceCandidate | RTCIceCandidateComplete;
1458114607type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
1458214608type payloadtype = number;
14609+ type ScrollBehavior = "auto" | "instant" | "smooth";
14610+ type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
1458314611type IDBValidKey = number | string | Date | IDBArrayKey;
1458414612type BufferSource = ArrayBuffer | ArrayBufferView;
1458514613type MouseWheelEvent = WheelEvent;
0 commit comments