Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13237,28 +13237,28 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll)
*/
scroll(options?: ScrollToOptions): Promise<void>;
scroll(x: number, y: number): Promise<void>;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/**
* The **`scrollBy()`** method of the Element interface scrolls an element by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
*/
scrollBy(options?: ScrollToOptions): Promise<void>;
scrollBy(x: number, y: number): Promise<void>;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/**
* The Element interface's **`scrollIntoView()`** method scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
*/
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): Promise<void>;
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
/**
* The **`scrollTo()`** method of the Element interface scrolls to a particular set of coordinates inside a given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
*/
scrollTo(options?: ScrollToOptions): Promise<void>;
scrollTo(x: number, y: number): Promise<void>;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* The **`setAttribute()`** method of the Element interface sets the value of an attribute on the specified element. If the attribute already exists, the value is updated; otherwise a new attribute is added with the specified name and value.
*
Expand Down Expand Up @@ -39325,22 +39325,22 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
*/
scroll(options?: ScrollToOptions): Promise<void>;
scroll(x: number, y: number): Promise<void>;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/**
* The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
*/
scrollBy(options?: ScrollToOptions): Promise<void>;
scrollBy(x: number, y: number): Promise<void>;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/**
* **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
*/
scrollTo(options?: ScrollToOptions): Promise<void>;
scrollTo(x: number, y: number): Promise<void>;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
*
Expand Down Expand Up @@ -41489,22 +41489,22 @@ declare function resizeTo(width: number, height: number): void;
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
*/
declare function scroll(options?: ScrollToOptions): Promise<void>;
declare function scroll(x: number, y: number): Promise<void>;
declare function scroll(options?: ScrollToOptions): void;
declare function scroll(x: number, y: number): void;
/**
* The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
*/
declare function scrollBy(options?: ScrollToOptions): Promise<void>;
declare function scrollBy(x: number, y: number): Promise<void>;
declare function scrollBy(options?: ScrollToOptions): void;
declare function scrollBy(x: number, y: number): void;
/**
* **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
*/
declare function scrollTo(options?: ScrollToOptions): Promise<void>;
declare function scrollTo(x: number, y: number): Promise<void>;
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollTo(x: number, y: number): void;
/**
* The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
*
Expand Down
38 changes: 19 additions & 19 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13224,28 +13224,28 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll)
*/
scroll(options?: ScrollToOptions): Promise<void>;
scroll(x: number, y: number): Promise<void>;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/**
* The **`scrollBy()`** method of the Element interface scrolls an element by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
*/
scrollBy(options?: ScrollToOptions): Promise<void>;
scrollBy(x: number, y: number): Promise<void>;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/**
* The Element interface's **`scrollIntoView()`** method scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
*/
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): Promise<void>;
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
/**
* The **`scrollTo()`** method of the Element interface scrolls to a particular set of coordinates inside a given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
*/
scrollTo(options?: ScrollToOptions): Promise<void>;
scrollTo(x: number, y: number): Promise<void>;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* The **`setAttribute()`** method of the Element interface sets the value of an attribute on the specified element. If the attribute already exists, the value is updated; otherwise a new attribute is added with the specified name and value.
*
Expand Down Expand Up @@ -39299,22 +39299,22 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
*/
scroll(options?: ScrollToOptions): Promise<void>;
scroll(x: number, y: number): Promise<void>;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/**
* The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
*/
scrollBy(options?: ScrollToOptions): Promise<void>;
scrollBy(x: number, y: number): Promise<void>;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/**
* **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
*/
scrollTo(options?: ScrollToOptions): Promise<void>;
scrollTo(x: number, y: number): Promise<void>;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
*
Expand Down Expand Up @@ -41463,22 +41463,22 @@ declare function resizeTo(width: number, height: number): void;
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
*/
declare function scroll(options?: ScrollToOptions): Promise<void>;
declare function scroll(x: number, y: number): Promise<void>;
declare function scroll(options?: ScrollToOptions): void;
declare function scroll(x: number, y: number): void;
/**
* The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
*/
declare function scrollBy(options?: ScrollToOptions): Promise<void>;
declare function scrollBy(x: number, y: number): Promise<void>;
declare function scrollBy(options?: ScrollToOptions): void;
declare function scrollBy(x: number, y: number): void;
/**
* **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
*/
declare function scrollTo(options?: ScrollToOptions): Promise<void>;
declare function scrollTo(x: number, y: number): Promise<void>;
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollTo(x: number, y: number): void;
/**
* The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
*
Expand Down
38 changes: 19 additions & 19 deletions baselines/ts5.6/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13234,28 +13234,28 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll)
*/
scroll(options?: ScrollToOptions): Promise<void>;
scroll(x: number, y: number): Promise<void>;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/**
* The **`scrollBy()`** method of the Element interface scrolls an element by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
*/
scrollBy(options?: ScrollToOptions): Promise<void>;
scrollBy(x: number, y: number): Promise<void>;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/**
* The Element interface's **`scrollIntoView()`** method scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
*/
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): Promise<void>;
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
/**
* The **`scrollTo()`** method of the Element interface scrolls to a particular set of coordinates inside a given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
*/
scrollTo(options?: ScrollToOptions): Promise<void>;
scrollTo(x: number, y: number): Promise<void>;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* The **`setAttribute()`** method of the Element interface sets the value of an attribute on the specified element. If the attribute already exists, the value is updated; otherwise a new attribute is added with the specified name and value.
*
Expand Down Expand Up @@ -39322,22 +39322,22 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
*/
scroll(options?: ScrollToOptions): Promise<void>;
scroll(x: number, y: number): Promise<void>;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/**
* The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
*/
scrollBy(options?: ScrollToOptions): Promise<void>;
scrollBy(x: number, y: number): Promise<void>;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/**
* **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
*/
scrollTo(options?: ScrollToOptions): Promise<void>;
scrollTo(x: number, y: number): Promise<void>;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
*
Expand Down Expand Up @@ -41486,22 +41486,22 @@ declare function resizeTo(width: number, height: number): void;
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
*/
declare function scroll(options?: ScrollToOptions): Promise<void>;
declare function scroll(x: number, y: number): Promise<void>;
declare function scroll(options?: ScrollToOptions): void;
declare function scroll(x: number, y: number): void;
/**
* The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
*/
declare function scrollBy(options?: ScrollToOptions): Promise<void>;
declare function scrollBy(x: number, y: number): Promise<void>;
declare function scrollBy(options?: ScrollToOptions): void;
declare function scrollBy(x: number, y: number): void;
/**
* **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
*/
declare function scrollTo(options?: ScrollToOptions): Promise<void>;
declare function scrollTo(x: number, y: number): Promise<void>;
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollTo(x: number, y: number): void;
/**
* The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
*
Expand Down
38 changes: 19 additions & 19 deletions baselines/ts5.9/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13234,28 +13234,28 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll)
*/
scroll(options?: ScrollToOptions): Promise<void>;
scroll(x: number, y: number): Promise<void>;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/**
* The **`scrollBy()`** method of the Element interface scrolls an element by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
*/
scrollBy(options?: ScrollToOptions): Promise<void>;
scrollBy(x: number, y: number): Promise<void>;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/**
* The Element interface's **`scrollIntoView()`** method scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
*/
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): Promise<void>;
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
/**
* The **`scrollTo()`** method of the Element interface scrolls to a particular set of coordinates inside a given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
*/
scrollTo(options?: ScrollToOptions): Promise<void>;
scrollTo(x: number, y: number): Promise<void>;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* The **`setAttribute()`** method of the Element interface sets the value of an attribute on the specified element. If the attribute already exists, the value is updated; otherwise a new attribute is added with the specified name and value.
*
Expand Down Expand Up @@ -39322,22 +39322,22 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
*/
scroll(options?: ScrollToOptions): Promise<void>;
scroll(x: number, y: number): Promise<void>;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/**
* The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
*/
scrollBy(options?: ScrollToOptions): Promise<void>;
scrollBy(x: number, y: number): Promise<void>;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/**
* **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
*/
scrollTo(options?: ScrollToOptions): Promise<void>;
scrollTo(x: number, y: number): Promise<void>;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
*
Expand Down Expand Up @@ -41486,22 +41486,22 @@ declare function resizeTo(width: number, height: number): void;
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
*/
declare function scroll(options?: ScrollToOptions): Promise<void>;
declare function scroll(x: number, y: number): Promise<void>;
declare function scroll(options?: ScrollToOptions): void;
declare function scroll(x: number, y: number): void;
/**
* The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
*/
declare function scrollBy(options?: ScrollToOptions): Promise<void>;
declare function scrollBy(x: number, y: number): Promise<void>;
declare function scrollBy(options?: ScrollToOptions): void;
declare function scrollBy(x: number, y: number): void;
/**
* **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
*/
declare function scrollTo(options?: ScrollToOptions): Promise<void>;
declare function scrollTo(x: number, y: number): Promise<void>;
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollTo(x: number, y: number): void;
/**
* The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
*
Expand Down
20 changes: 20 additions & 0 deletions inputfiles/patches/cssom-view.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,23 @@ interface-mixin DocumentOrShadowRoot {
param y type=long
}
}

// No implementation of Promise return values as of 2025-11
interface Element {
method scroll returns=void signatureIndex=0
method scroll returns=void signatureIndex=1
method scrollBy returns=void signatureIndex=0
method scrollBy returns=void signatureIndex=1
method scrollTo returns=void signatureIndex=0
method scrollTo returns=void signatureIndex=1
method scrollIntoView returns=void signatureIndex=0
}

interface Window {
method scroll returns=void signatureIndex=0
method scroll returns=void signatureIndex=1
method scrollBy returns=void signatureIndex=0
method scrollBy returns=void signatureIndex=1
method scrollTo returns=void signatureIndex=0
method scrollTo returns=void signatureIndex=1
}
Loading