From 8f3d85583441c4104616f8d811b7fed5813acac0 Mon Sep 17 00:00:00 2001 From: orta <49038+orta@users.noreply.github.com> Date: Thu, 16 Oct 2025 08:12:15 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Update=20core=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- baselines/dom.generated.d.ts | 64 ++++++++++++++++++------------ baselines/ts5.5/dom.generated.d.ts | 64 ++++++++++++++++++------------ baselines/ts5.6/dom.generated.d.ts | 64 ++++++++++++++++++------------ baselines/ts5.9/dom.generated.d.ts | 64 ++++++++++++++++++------------ inputfiles/mdn | 2 +- package-lock.json | 24 +++++------ 6 files changed, 169 insertions(+), 113 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index aba557ffa..b2483ca64 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -5996,7 +5996,7 @@ declare var CSSStartingStyleRule: { }; /** - * The **`CSSStyleDeclaration`** interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties. + * The **`CSSStyleDeclaration`** interface is the base class for objects that represent CSS declaration blocks with different supported sets of CSS style information: * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) */ @@ -6060,6 +6060,11 @@ declare var CSSStyleDeclaration: { new(): CSSStyleDeclaration; }; +/** + * The **`CSSStyleProperties`** interface of the CSS Object Model (CSSOM) represents inline or computed styles available on an element, or the styles associated with a CSS style rule. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleProperties) + */ interface CSSStyleProperties extends CSSStyleDeclarationBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ accentColor: string; @@ -6348,7 +6353,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { counterReset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ counterSet: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ + /** + * The **`cssFloat`** property of the CSSStyleProperties interface returns the CSS float property. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) + */ cssFloat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; @@ -7422,7 +7431,7 @@ interface CSSStyleRule extends CSSGroupingRule { */ selectorText: string; /** - * The read-only **`style`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule. + * The read-only **`style`** property is a CSSStyleProperties object that represents the inline styles of a style rule (CSSStyleRule). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ @@ -9344,7 +9353,7 @@ declare var DOMMatrixReadOnly: { */ interface DOMParser { /** - * The **`parseFromString()`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument. + * The **`parseFromString()`** method of the DOMParser interface parses an input containing either HTML or XML, returning a Document with the type given in the Document/contentType property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) */ @@ -11382,28 +11391,28 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ - scroll(options?: ScrollToOptions): void; - scroll(x: number, y: number): void; + scroll(options?: ScrollToOptions): Promise; + scroll(x: number, y: number): Promise; /** * 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): void; - scrollBy(x: number, y: number): void; + scrollBy(options?: ScrollToOptions): Promise; + scrollBy(x: number, y: number): Promise; /** * 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): void; + scrollIntoView(arg?: boolean | ScrollIntoViewOptions): Promise; /** * 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): void; - scrollTo(x: number, y: number): void; + scrollTo(options?: ScrollToOptions): Promise; + scrollTo(x: number, y: number): Promise; /** * The **`setAttribute()`** method of the Element interface sets the value of an attribute on the specified element. * @@ -13032,6 +13041,7 @@ interface GlobalEventHandlersEventMap { "change": Event; "click": PointerEvent; "close": Event; + "command": Event; "compositionend": CompositionEvent; "compositionstart": CompositionEvent; "compositionupdate": CompositionEvent; @@ -13156,6 +13166,8 @@ interface GlobalEventHandlers { onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */ + oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ @@ -37370,7 +37382,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ focus(): void; /** - * The **`Window.getComputedStyle()`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain. + * The **`Window.getComputedStyle()`** method returns a live read-only CSSStyleProperties object containing the resolved values of all CSS properties of an element, after applying active stylesheets and resolving any computation those values may contain. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */ @@ -37454,22 +37466,22 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */ - scroll(options?: ScrollToOptions): void; - scroll(x: number, y: number): void; + scroll(options?: ScrollToOptions): Promise; + scroll(x: number, y: number): Promise; /** * 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): void; - scrollBy(x: number, y: number): void; + scrollBy(options?: ScrollToOptions): Promise; + scrollBy(x: number, y: number): Promise; /** * **`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): void; - scrollTo(x: number, y: number): void; + scrollTo(options?: ScrollToOptions): Promise; + scrollTo(x: number, y: number): Promise; /** * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser. * @@ -39534,7 +39546,7 @@ declare function confirm(message?: string): boolean; */ declare function focus(): void; /** - * The **`Window.getComputedStyle()`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain. + * The **`Window.getComputedStyle()`** method returns a live read-only CSSStyleProperties object containing the resolved values of all CSS properties of an element, after applying active stylesheets and resolving any computation those values may contain. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */ @@ -39618,22 +39630,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): void; -declare function scroll(x: number, y: number): void; +declare function scroll(options?: ScrollToOptions): Promise; +declare function scroll(x: number, y: number): Promise; /** * 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): void; -declare function scrollBy(x: number, y: number): void; +declare function scrollBy(options?: ScrollToOptions): Promise; +declare function scrollBy(x: number, y: number): Promise; /** * **`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): void; -declare function scrollTo(x: number, y: number): void; +declare function scrollTo(options?: ScrollToOptions): Promise; +declare function scrollTo(x: number, y: number): Promise; /** * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser. * @@ -39683,6 +39695,8 @@ declare var onchange: ((this: Window, ev: Event) => any) | null; declare var onclick: ((this: Window, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ declare var onclose: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */ +declare var oncommand: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ declare var oncontextlost: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index e9a89e628..65ce4eb3d 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -5986,7 +5986,7 @@ declare var CSSStartingStyleRule: { }; /** - * The **`CSSStyleDeclaration`** interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties. + * The **`CSSStyleDeclaration`** interface is the base class for objects that represent CSS declaration blocks with different supported sets of CSS style information: * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) */ @@ -6050,6 +6050,11 @@ declare var CSSStyleDeclaration: { new(): CSSStyleDeclaration; }; +/** + * The **`CSSStyleProperties`** interface of the CSS Object Model (CSSOM) represents inline or computed styles available on an element, or the styles associated with a CSS style rule. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleProperties) + */ interface CSSStyleProperties extends CSSStyleDeclarationBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ accentColor: string; @@ -6338,7 +6343,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { counterReset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ counterSet: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ + /** + * The **`cssFloat`** property of the CSSStyleProperties interface returns the CSS float property. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) + */ cssFloat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; @@ -7412,7 +7421,7 @@ interface CSSStyleRule extends CSSGroupingRule { */ selectorText: string; /** - * The read-only **`style`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule. + * The read-only **`style`** property is a CSSStyleProperties object that represents the inline styles of a style rule (CSSStyleRule). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ @@ -9333,7 +9342,7 @@ declare var DOMMatrixReadOnly: { */ interface DOMParser { /** - * The **`parseFromString()`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument. + * The **`parseFromString()`** method of the DOMParser interface parses an input containing either HTML or XML, returning a Document with the type given in the Document/contentType property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) */ @@ -11369,28 +11378,28 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ - scroll(options?: ScrollToOptions): void; - scroll(x: number, y: number): void; + scroll(options?: ScrollToOptions): Promise; + scroll(x: number, y: number): Promise; /** * 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): void; - scrollBy(x: number, y: number): void; + scrollBy(options?: ScrollToOptions): Promise; + scrollBy(x: number, y: number): Promise; /** * 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): void; + scrollIntoView(arg?: boolean | ScrollIntoViewOptions): Promise; /** * 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): void; - scrollTo(x: number, y: number): void; + scrollTo(options?: ScrollToOptions): Promise; + scrollTo(x: number, y: number): Promise; /** * The **`setAttribute()`** method of the Element interface sets the value of an attribute on the specified element. * @@ -13018,6 +13027,7 @@ interface GlobalEventHandlersEventMap { "change": Event; "click": PointerEvent; "close": Event; + "command": Event; "compositionend": CompositionEvent; "compositionstart": CompositionEvent; "compositionupdate": CompositionEvent; @@ -13142,6 +13152,8 @@ interface GlobalEventHandlers { onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */ + oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ @@ -37344,7 +37356,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ focus(): void; /** - * The **`Window.getComputedStyle()`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain. + * The **`Window.getComputedStyle()`** method returns a live read-only CSSStyleProperties object containing the resolved values of all CSS properties of an element, after applying active stylesheets and resolving any computation those values may contain. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */ @@ -37428,22 +37440,22 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */ - scroll(options?: ScrollToOptions): void; - scroll(x: number, y: number): void; + scroll(options?: ScrollToOptions): Promise; + scroll(x: number, y: number): Promise; /** * 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): void; - scrollBy(x: number, y: number): void; + scrollBy(options?: ScrollToOptions): Promise; + scrollBy(x: number, y: number): Promise; /** * **`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): void; - scrollTo(x: number, y: number): void; + scrollTo(options?: ScrollToOptions): Promise; + scrollTo(x: number, y: number): Promise; /** * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser. * @@ -39508,7 +39520,7 @@ declare function confirm(message?: string): boolean; */ declare function focus(): void; /** - * The **`Window.getComputedStyle()`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain. + * The **`Window.getComputedStyle()`** method returns a live read-only CSSStyleProperties object containing the resolved values of all CSS properties of an element, after applying active stylesheets and resolving any computation those values may contain. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */ @@ -39592,22 +39604,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): void; -declare function scroll(x: number, y: number): void; +declare function scroll(options?: ScrollToOptions): Promise; +declare function scroll(x: number, y: number): Promise; /** * 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): void; -declare function scrollBy(x: number, y: number): void; +declare function scrollBy(options?: ScrollToOptions): Promise; +declare function scrollBy(x: number, y: number): Promise; /** * **`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): void; -declare function scrollTo(x: number, y: number): void; +declare function scrollTo(options?: ScrollToOptions): Promise; +declare function scrollTo(x: number, y: number): Promise; /** * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser. * @@ -39657,6 +39669,8 @@ declare var onchange: ((this: Window, ev: Event) => any) | null; declare var onclick: ((this: Window, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ declare var onclose: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */ +declare var oncommand: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ declare var oncontextlost: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 47e922f15..33fa221e5 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -5993,7 +5993,7 @@ declare var CSSStartingStyleRule: { }; /** - * The **`CSSStyleDeclaration`** interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties. + * The **`CSSStyleDeclaration`** interface is the base class for objects that represent CSS declaration blocks with different supported sets of CSS style information: * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) */ @@ -6057,6 +6057,11 @@ declare var CSSStyleDeclaration: { new(): CSSStyleDeclaration; }; +/** + * The **`CSSStyleProperties`** interface of the CSS Object Model (CSSOM) represents inline or computed styles available on an element, or the styles associated with a CSS style rule. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleProperties) + */ interface CSSStyleProperties extends CSSStyleDeclarationBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ accentColor: string; @@ -6345,7 +6350,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { counterReset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ counterSet: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ + /** + * The **`cssFloat`** property of the CSSStyleProperties interface returns the CSS float property. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) + */ cssFloat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; @@ -7419,7 +7428,7 @@ interface CSSStyleRule extends CSSGroupingRule { */ selectorText: string; /** - * The read-only **`style`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule. + * The read-only **`style`** property is a CSSStyleProperties object that represents the inline styles of a style rule (CSSStyleRule). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ @@ -9341,7 +9350,7 @@ declare var DOMMatrixReadOnly: { */ interface DOMParser { /** - * The **`parseFromString()`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument. + * The **`parseFromString()`** method of the DOMParser interface parses an input containing either HTML or XML, returning a Document with the type given in the Document/contentType property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) */ @@ -11379,28 +11388,28 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ - scroll(options?: ScrollToOptions): void; - scroll(x: number, y: number): void; + scroll(options?: ScrollToOptions): Promise; + scroll(x: number, y: number): Promise; /** * 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): void; - scrollBy(x: number, y: number): void; + scrollBy(options?: ScrollToOptions): Promise; + scrollBy(x: number, y: number): Promise; /** * 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): void; + scrollIntoView(arg?: boolean | ScrollIntoViewOptions): Promise; /** * 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): void; - scrollTo(x: number, y: number): void; + scrollTo(options?: ScrollToOptions): Promise; + scrollTo(x: number, y: number): Promise; /** * The **`setAttribute()`** method of the Element interface sets the value of an attribute on the specified element. * @@ -13029,6 +13038,7 @@ interface GlobalEventHandlersEventMap { "change": Event; "click": PointerEvent; "close": Event; + "command": Event; "compositionend": CompositionEvent; "compositionstart": CompositionEvent; "compositionupdate": CompositionEvent; @@ -13153,6 +13163,8 @@ interface GlobalEventHandlers { onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */ + oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ @@ -37367,7 +37379,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ focus(): void; /** - * The **`Window.getComputedStyle()`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain. + * The **`Window.getComputedStyle()`** method returns a live read-only CSSStyleProperties object containing the resolved values of all CSS properties of an element, after applying active stylesheets and resolving any computation those values may contain. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */ @@ -37451,22 +37463,22 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */ - scroll(options?: ScrollToOptions): void; - scroll(x: number, y: number): void; + scroll(options?: ScrollToOptions): Promise; + scroll(x: number, y: number): Promise; /** * 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): void; - scrollBy(x: number, y: number): void; + scrollBy(options?: ScrollToOptions): Promise; + scrollBy(x: number, y: number): Promise; /** * **`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): void; - scrollTo(x: number, y: number): void; + scrollTo(options?: ScrollToOptions): Promise; + scrollTo(x: number, y: number): Promise; /** * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser. * @@ -39531,7 +39543,7 @@ declare function confirm(message?: string): boolean; */ declare function focus(): void; /** - * The **`Window.getComputedStyle()`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain. + * The **`Window.getComputedStyle()`** method returns a live read-only CSSStyleProperties object containing the resolved values of all CSS properties of an element, after applying active stylesheets and resolving any computation those values may contain. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */ @@ -39615,22 +39627,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): void; -declare function scroll(x: number, y: number): void; +declare function scroll(options?: ScrollToOptions): Promise; +declare function scroll(x: number, y: number): Promise; /** * 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): void; -declare function scrollBy(x: number, y: number): void; +declare function scrollBy(options?: ScrollToOptions): Promise; +declare function scrollBy(x: number, y: number): Promise; /** * **`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): void; -declare function scrollTo(x: number, y: number): void; +declare function scrollTo(options?: ScrollToOptions): Promise; +declare function scrollTo(x: number, y: number): Promise; /** * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser. * @@ -39680,6 +39692,8 @@ declare var onchange: ((this: Window, ev: Event) => any) | null; declare var onclick: ((this: Window, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ declare var onclose: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */ +declare var oncommand: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ declare var oncontextlost: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 5c741ac29..1bba975db 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -5993,7 +5993,7 @@ declare var CSSStartingStyleRule: { }; /** - * The **`CSSStyleDeclaration`** interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties. + * The **`CSSStyleDeclaration`** interface is the base class for objects that represent CSS declaration blocks with different supported sets of CSS style information: * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) */ @@ -6057,6 +6057,11 @@ declare var CSSStyleDeclaration: { new(): CSSStyleDeclaration; }; +/** + * The **`CSSStyleProperties`** interface of the CSS Object Model (CSSOM) represents inline or computed styles available on an element, or the styles associated with a CSS style rule. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleProperties) + */ interface CSSStyleProperties extends CSSStyleDeclarationBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ accentColor: string; @@ -6345,7 +6350,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { counterReset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ counterSet: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ + /** + * The **`cssFloat`** property of the CSSStyleProperties interface returns the CSS float property. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) + */ cssFloat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; @@ -7419,7 +7428,7 @@ interface CSSStyleRule extends CSSGroupingRule { */ selectorText: string; /** - * The read-only **`style`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule. + * The read-only **`style`** property is a CSSStyleProperties object that represents the inline styles of a style rule (CSSStyleRule). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ @@ -9341,7 +9350,7 @@ declare var DOMMatrixReadOnly: { */ interface DOMParser { /** - * The **`parseFromString()`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument. + * The **`parseFromString()`** method of the DOMParser interface parses an input containing either HTML or XML, returning a Document with the type given in the Document/contentType property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) */ @@ -11379,28 +11388,28 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ - scroll(options?: ScrollToOptions): void; - scroll(x: number, y: number): void; + scroll(options?: ScrollToOptions): Promise; + scroll(x: number, y: number): Promise; /** * 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): void; - scrollBy(x: number, y: number): void; + scrollBy(options?: ScrollToOptions): Promise; + scrollBy(x: number, y: number): Promise; /** * 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): void; + scrollIntoView(arg?: boolean | ScrollIntoViewOptions): Promise; /** * 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): void; - scrollTo(x: number, y: number): void; + scrollTo(options?: ScrollToOptions): Promise; + scrollTo(x: number, y: number): Promise; /** * The **`setAttribute()`** method of the Element interface sets the value of an attribute on the specified element. * @@ -13029,6 +13038,7 @@ interface GlobalEventHandlersEventMap { "change": Event; "click": PointerEvent; "close": Event; + "command": Event; "compositionend": CompositionEvent; "compositionstart": CompositionEvent; "compositionupdate": CompositionEvent; @@ -13153,6 +13163,8 @@ interface GlobalEventHandlers { onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */ + oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ @@ -37367,7 +37379,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ focus(): void; /** - * The **`Window.getComputedStyle()`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain. + * The **`Window.getComputedStyle()`** method returns a live read-only CSSStyleProperties object containing the resolved values of all CSS properties of an element, after applying active stylesheets and resolving any computation those values may contain. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */ @@ -37451,22 +37463,22 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */ - scroll(options?: ScrollToOptions): void; - scroll(x: number, y: number): void; + scroll(options?: ScrollToOptions): Promise; + scroll(x: number, y: number): Promise; /** * 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): void; - scrollBy(x: number, y: number): void; + scrollBy(options?: ScrollToOptions): Promise; + scrollBy(x: number, y: number): Promise; /** * **`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): void; - scrollTo(x: number, y: number): void; + scrollTo(options?: ScrollToOptions): Promise; + scrollTo(x: number, y: number): Promise; /** * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser. * @@ -39531,7 +39543,7 @@ declare function confirm(message?: string): boolean; */ declare function focus(): void; /** - * The **`Window.getComputedStyle()`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain. + * The **`Window.getComputedStyle()`** method returns a live read-only CSSStyleProperties object containing the resolved values of all CSS properties of an element, after applying active stylesheets and resolving any computation those values may contain. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */ @@ -39615,22 +39627,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): void; -declare function scroll(x: number, y: number): void; +declare function scroll(options?: ScrollToOptions): Promise; +declare function scroll(x: number, y: number): Promise; /** * 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): void; -declare function scrollBy(x: number, y: number): void; +declare function scrollBy(options?: ScrollToOptions): Promise; +declare function scrollBy(x: number, y: number): Promise; /** * **`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): void; -declare function scrollTo(x: number, y: number): void; +declare function scrollTo(options?: ScrollToOptions): Promise; +declare function scrollTo(x: number, y: number): Promise; /** * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser. * @@ -39680,6 +39692,8 @@ declare var onchange: ((this: Window, ev: Event) => any) | null; declare var onclick: ((this: Window, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ declare var onclose: ((this: Window, ev: Event) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */ +declare var oncommand: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ declare var oncontextlost: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ diff --git a/inputfiles/mdn b/inputfiles/mdn index 7615562a3..625175dd4 160000 --- a/inputfiles/mdn +++ b/inputfiles/mdn @@ -1 +1 @@ -Subproject commit 7615562a3689a3e23a2b6b623597f4391740a53e +Subproject commit 625175dd49e0bebaea69fe87e7b715dee3bf261d diff --git a/package-lock.json b/package-lock.json index 763274b74..d0ea40431 100644 --- a/package-lock.json +++ b/package-lock.json @@ -397,9 +397,9 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "7.1.12", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-7.1.12.tgz", - "integrity": "sha512-W3GkHRqD1eqUwkY2tasG73slXfx76mMzpWGs/K6nC7qsYwprZF+IQ2dva/HKjKhSxRiG6a00hoSuu8rGSnhbqg==", + "version": "7.1.13", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-7.1.13.tgz", + "integrity": "sha512-zEYA6ScMMjtzZDNXXshiX8CZBIGwZH822DSx0G2MhAmZSbKgJiWeeNpyXuRgXhM7U2m6SsPQMp7qi75LaAk5Gw==", "dev": true, "license": "CC0-1.0" }, @@ -1039,9 +1039,9 @@ } }, "node_modules/@webref/css": { - "version": "6.23.12", - "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.23.12.tgz", - "integrity": "sha512-3n6yZ+x8azF7jmoQsbnz8bNwUK9MqhHH+yjsz/GYIhwLc9NXv7yKvuF4ioQrzg2D1UbXFuyZXwblVScrtWv3/Q==", + "version": "6.23.13", + "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.23.13.tgz", + "integrity": "sha512-M02avWXDVgLBVUwmMKyITnDIDZATt4VuFdvKBksbHrSN3tpOb7GjPPhmYilR0HGizhPkDO/T29LM1VqhguRRZg==", "dev": true, "license": "MIT", "peerDependencies": { @@ -1056,16 +1056,16 @@ "license": "MIT" }, "node_modules/@webref/events": { - "version": "1.19.0", - "resolved": "https://registry.npmjs.org/@webref/events/-/events-1.19.0.tgz", - "integrity": "sha512-GAv2ERD0mQxf9UPzQhROHf2KiCow1dh/F+B6Uok9m7GSLDvxtS+jFPjJ17EI809xrY0uTEqf4y08yrjNHiBhPg==", + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/@webref/events/-/events-1.19.1.tgz", + "integrity": "sha512-3glTCoO7jnRXPfddSsOKV4tmnee7OKCyo57pkzH8RvYFyxCoCAQE40g27PF3Z9HSODAKD+j1CggBplTkpSipmA==", "dev": true, "license": "MIT" }, "node_modules/@webref/idl": { - "version": "3.68.1", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.68.1.tgz", - "integrity": "sha512-ZCsF8jxVxtHcyYLaueF68SXSq9uiZv+49ilk6c2RfzKDhj+kpJKhkR2zRe8tcDdhWD/CWAhA3ADWNHayLhx72A==", + "version": "3.68.2", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.68.2.tgz", + "integrity": "sha512-ZIWPvhq2TcCfxjDhsNDZHhe/jj5CbaoLsh3cTlbnQXwgjgf81K4mUfH/3PShtBBBjzqmWkj637tkU6JraHS2gw==", "dev": true, "license": "MIT", "peerDependencies": {