@types/web 0.0.279 → 0.0.281

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.279 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.279.
50
+ You can read what changed in version 0.0.281 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.281.
package/index.d.ts CHANGED
@@ -5999,7 +5999,7 @@ declare var CSSStartingStyleRule: {
5999
5999
  };
6000
6000
 
6001
6001
  /**
6002
- * The **`CSSStyleDeclaration`** interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
6002
+ * The **`CSSStyleDeclaration`** interface is the base class for objects that represent CSS declaration blocks with different supported sets of CSS style information:
6003
6003
  *
6004
6004
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
6005
6005
  */
@@ -6063,6 +6063,11 @@ declare var CSSStyleDeclaration: {
6063
6063
  new(): CSSStyleDeclaration;
6064
6064
  };
6065
6065
 
6066
+ /**
6067
+ * 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.
6068
+ *
6069
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleProperties)
6070
+ */
6066
6071
  interface CSSStyleProperties extends CSSStyleDeclarationBase {
6067
6072
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
6068
6073
  accentColor: string;
@@ -6351,7 +6356,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6351
6356
  counterReset: string;
6352
6357
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */
6353
6358
  counterSet: string;
6354
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */
6359
+ /**
6360
+ * The **`cssFloat`** property of the CSSStyleProperties interface returns the CSS float property.
6361
+ *
6362
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat)
6363
+ */
6355
6364
  cssFloat: string;
6356
6365
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */
6357
6366
  cursor: string;
@@ -7425,7 +7434,7 @@ interface CSSStyleRule extends CSSGroupingRule {
7425
7434
  */
7426
7435
  selectorText: string;
7427
7436
  /**
7428
- * The read-only **`style`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule.
7437
+ * The read-only **`style`** property is a CSSStyleProperties object that represents the inline styles of a style rule (CSSStyleRule).
7429
7438
  *
7430
7439
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
7431
7440
  */
@@ -9347,7 +9356,7 @@ declare var DOMMatrixReadOnly: {
9347
9356
  */
9348
9357
  interface DOMParser {
9349
9358
  /**
9350
- * The **`parseFromString()`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument.
9359
+ * 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.
9351
9360
  *
9352
9361
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString)
9353
9362
  */
@@ -11385,28 +11394,28 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11385
11394
  *
11386
11395
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll)
11387
11396
  */
11388
- scroll(options?: ScrollToOptions): void;
11389
- scroll(x: number, y: number): void;
11397
+ scroll(options?: ScrollToOptions): Promise<void>;
11398
+ scroll(x: number, y: number): Promise<void>;
11390
11399
  /**
11391
11400
  * The **`scrollBy()`** method of the Element interface scrolls an element by the given amount.
11392
11401
  *
11393
11402
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
11394
11403
  */
11395
- scrollBy(options?: ScrollToOptions): void;
11396
- scrollBy(x: number, y: number): void;
11404
+ scrollBy(options?: ScrollToOptions): Promise<void>;
11405
+ scrollBy(x: number, y: number): Promise<void>;
11397
11406
  /**
11398
11407
  * 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.
11399
11408
  *
11400
11409
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
11401
11410
  */
11402
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
11411
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): Promise<void>;
11403
11412
  /**
11404
11413
  * The **`scrollTo()`** method of the Element interface scrolls to a particular set of coordinates inside a given element.
11405
11414
  *
11406
11415
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
11407
11416
  */
11408
- scrollTo(options?: ScrollToOptions): void;
11409
- scrollTo(x: number, y: number): void;
11417
+ scrollTo(options?: ScrollToOptions): Promise<void>;
11418
+ scrollTo(x: number, y: number): Promise<void>;
11410
11419
  /**
11411
11420
  * The **`setAttribute()`** method of the Element interface sets the value of an attribute on the specified element.
11412
11421
  *
@@ -13035,6 +13044,7 @@ interface GlobalEventHandlersEventMap {
13035
13044
  "change": Event;
13036
13045
  "click": PointerEvent;
13037
13046
  "close": Event;
13047
+ "command": Event;
13038
13048
  "compositionend": CompositionEvent;
13039
13049
  "compositionstart": CompositionEvent;
13040
13050
  "compositionupdate": CompositionEvent;
@@ -13159,6 +13169,8 @@ interface GlobalEventHandlers {
13159
13169
  onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
13160
13170
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
13161
13171
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
13172
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */
13173
+ oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
13162
13174
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
13163
13175
  oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
13164
13176
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */
@@ -32805,6 +32817,12 @@ interface ToggleEvent extends Event {
32805
32817
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState)
32806
32818
  */
32807
32819
  readonly oldState: string;
32820
+ /**
32821
+ * The **`source`** read-only property of the ToggleEvent interface is an Element object instance representing the HTML popover control element that initiated the toggle.
32822
+ *
32823
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/source)
32824
+ */
32825
+ readonly source: Element | null;
32808
32826
  }
32809
32827
 
32810
32828
  declare var ToggleEvent: {
@@ -37373,7 +37391,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
37373
37391
  */
37374
37392
  focus(): void;
37375
37393
  /**
37376
- * 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.
37394
+ * 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.
37377
37395
  *
37378
37396
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
37379
37397
  */
@@ -37457,22 +37475,22 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
37457
37475
  *
37458
37476
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
37459
37477
  */
37460
- scroll(options?: ScrollToOptions): void;
37461
- scroll(x: number, y: number): void;
37478
+ scroll(options?: ScrollToOptions): Promise<void>;
37479
+ scroll(x: number, y: number): Promise<void>;
37462
37480
  /**
37463
37481
  * The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
37464
37482
  *
37465
37483
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
37466
37484
  */
37467
- scrollBy(options?: ScrollToOptions): void;
37468
- scrollBy(x: number, y: number): void;
37485
+ scrollBy(options?: ScrollToOptions): Promise<void>;
37486
+ scrollBy(x: number, y: number): Promise<void>;
37469
37487
  /**
37470
37488
  * **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
37471
37489
  *
37472
37490
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
37473
37491
  */
37474
- scrollTo(options?: ScrollToOptions): void;
37475
- scrollTo(x: number, y: number): void;
37492
+ scrollTo(options?: ScrollToOptions): Promise<void>;
37493
+ scrollTo(x: number, y: number): Promise<void>;
37476
37494
  /**
37477
37495
  * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
37478
37496
  *
@@ -39537,7 +39555,7 @@ declare function confirm(message?: string): boolean;
39537
39555
  */
39538
39556
  declare function focus(): void;
39539
39557
  /**
39540
- * 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.
39558
+ * 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.
39541
39559
  *
39542
39560
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
39543
39561
  */
@@ -39621,22 +39639,22 @@ declare function resizeTo(width: number, height: number): void;
39621
39639
  *
39622
39640
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
39623
39641
  */
39624
- declare function scroll(options?: ScrollToOptions): void;
39625
- declare function scroll(x: number, y: number): void;
39642
+ declare function scroll(options?: ScrollToOptions): Promise<void>;
39643
+ declare function scroll(x: number, y: number): Promise<void>;
39626
39644
  /**
39627
39645
  * The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
39628
39646
  *
39629
39647
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
39630
39648
  */
39631
- declare function scrollBy(options?: ScrollToOptions): void;
39632
- declare function scrollBy(x: number, y: number): void;
39649
+ declare function scrollBy(options?: ScrollToOptions): Promise<void>;
39650
+ declare function scrollBy(x: number, y: number): Promise<void>;
39633
39651
  /**
39634
39652
  * **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
39635
39653
  *
39636
39654
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
39637
39655
  */
39638
- declare function scrollTo(options?: ScrollToOptions): void;
39639
- declare function scrollTo(x: number, y: number): void;
39656
+ declare function scrollTo(options?: ScrollToOptions): Promise<void>;
39657
+ declare function scrollTo(x: number, y: number): Promise<void>;
39640
39658
  /**
39641
39659
  * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
39642
39660
  *
@@ -39686,6 +39704,8 @@ declare var onchange: ((this: Window, ev: Event) => any) | null;
39686
39704
  declare var onclick: ((this: Window, ev: PointerEvent) => any) | null;
39687
39705
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
39688
39706
  declare var onclose: ((this: Window, ev: Event) => any) | null;
39707
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */
39708
+ declare var oncommand: ((this: Window, ev: Event) => any) | null;
39689
39709
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
39690
39710
  declare var oncontextlost: ((this: Window, ev: Event) => any) | null;
39691
39711
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.279",
3
+ "version": "0.0.281",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -5989,7 +5989,7 @@ declare var CSSStartingStyleRule: {
5989
5989
  };
5990
5990
 
5991
5991
  /**
5992
- * The **`CSSStyleDeclaration`** interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
5992
+ * The **`CSSStyleDeclaration`** interface is the base class for objects that represent CSS declaration blocks with different supported sets of CSS style information:
5993
5993
  *
5994
5994
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
5995
5995
  */
@@ -6053,6 +6053,11 @@ declare var CSSStyleDeclaration: {
6053
6053
  new(): CSSStyleDeclaration;
6054
6054
  };
6055
6055
 
6056
+ /**
6057
+ * 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.
6058
+ *
6059
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleProperties)
6060
+ */
6056
6061
  interface CSSStyleProperties extends CSSStyleDeclarationBase {
6057
6062
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
6058
6063
  accentColor: string;
@@ -6341,7 +6346,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6341
6346
  counterReset: string;
6342
6347
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */
6343
6348
  counterSet: string;
6344
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */
6349
+ /**
6350
+ * The **`cssFloat`** property of the CSSStyleProperties interface returns the CSS float property.
6351
+ *
6352
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat)
6353
+ */
6345
6354
  cssFloat: string;
6346
6355
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */
6347
6356
  cursor: string;
@@ -7415,7 +7424,7 @@ interface CSSStyleRule extends CSSGroupingRule {
7415
7424
  */
7416
7425
  selectorText: string;
7417
7426
  /**
7418
- * The read-only **`style`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule.
7427
+ * The read-only **`style`** property is a CSSStyleProperties object that represents the inline styles of a style rule (CSSStyleRule).
7419
7428
  *
7420
7429
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
7421
7430
  */
@@ -9336,7 +9345,7 @@ declare var DOMMatrixReadOnly: {
9336
9345
  */
9337
9346
  interface DOMParser {
9338
9347
  /**
9339
- * The **`parseFromString()`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument.
9348
+ * 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.
9340
9349
  *
9341
9350
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString)
9342
9351
  */
@@ -11372,28 +11381,28 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11372
11381
  *
11373
11382
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll)
11374
11383
  */
11375
- scroll(options?: ScrollToOptions): void;
11376
- scroll(x: number, y: number): void;
11384
+ scroll(options?: ScrollToOptions): Promise<void>;
11385
+ scroll(x: number, y: number): Promise<void>;
11377
11386
  /**
11378
11387
  * The **`scrollBy()`** method of the Element interface scrolls an element by the given amount.
11379
11388
  *
11380
11389
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
11381
11390
  */
11382
- scrollBy(options?: ScrollToOptions): void;
11383
- scrollBy(x: number, y: number): void;
11391
+ scrollBy(options?: ScrollToOptions): Promise<void>;
11392
+ scrollBy(x: number, y: number): Promise<void>;
11384
11393
  /**
11385
11394
  * 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.
11386
11395
  *
11387
11396
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
11388
11397
  */
11389
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
11398
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): Promise<void>;
11390
11399
  /**
11391
11400
  * The **`scrollTo()`** method of the Element interface scrolls to a particular set of coordinates inside a given element.
11392
11401
  *
11393
11402
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
11394
11403
  */
11395
- scrollTo(options?: ScrollToOptions): void;
11396
- scrollTo(x: number, y: number): void;
11404
+ scrollTo(options?: ScrollToOptions): Promise<void>;
11405
+ scrollTo(x: number, y: number): Promise<void>;
11397
11406
  /**
11398
11407
  * The **`setAttribute()`** method of the Element interface sets the value of an attribute on the specified element.
11399
11408
  *
@@ -13021,6 +13030,7 @@ interface GlobalEventHandlersEventMap {
13021
13030
  "change": Event;
13022
13031
  "click": PointerEvent;
13023
13032
  "close": Event;
13033
+ "command": Event;
13024
13034
  "compositionend": CompositionEvent;
13025
13035
  "compositionstart": CompositionEvent;
13026
13036
  "compositionupdate": CompositionEvent;
@@ -13145,6 +13155,8 @@ interface GlobalEventHandlers {
13145
13155
  onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
13146
13156
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
13147
13157
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
13158
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */
13159
+ oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
13148
13160
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
13149
13161
  oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
13150
13162
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */
@@ -32779,6 +32791,12 @@ interface ToggleEvent extends Event {
32779
32791
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState)
32780
32792
  */
32781
32793
  readonly oldState: string;
32794
+ /**
32795
+ * The **`source`** read-only property of the ToggleEvent interface is an Element object instance representing the HTML popover control element that initiated the toggle.
32796
+ *
32797
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/source)
32798
+ */
32799
+ readonly source: Element | null;
32782
32800
  }
32783
32801
 
32784
32802
  declare var ToggleEvent: {
@@ -37347,7 +37365,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
37347
37365
  */
37348
37366
  focus(): void;
37349
37367
  /**
37350
- * 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.
37368
+ * 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.
37351
37369
  *
37352
37370
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
37353
37371
  */
@@ -37431,22 +37449,22 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
37431
37449
  *
37432
37450
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
37433
37451
  */
37434
- scroll(options?: ScrollToOptions): void;
37435
- scroll(x: number, y: number): void;
37452
+ scroll(options?: ScrollToOptions): Promise<void>;
37453
+ scroll(x: number, y: number): Promise<void>;
37436
37454
  /**
37437
37455
  * The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
37438
37456
  *
37439
37457
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
37440
37458
  */
37441
- scrollBy(options?: ScrollToOptions): void;
37442
- scrollBy(x: number, y: number): void;
37459
+ scrollBy(options?: ScrollToOptions): Promise<void>;
37460
+ scrollBy(x: number, y: number): Promise<void>;
37443
37461
  /**
37444
37462
  * **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
37445
37463
  *
37446
37464
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
37447
37465
  */
37448
- scrollTo(options?: ScrollToOptions): void;
37449
- scrollTo(x: number, y: number): void;
37466
+ scrollTo(options?: ScrollToOptions): Promise<void>;
37467
+ scrollTo(x: number, y: number): Promise<void>;
37450
37468
  /**
37451
37469
  * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
37452
37470
  *
@@ -39511,7 +39529,7 @@ declare function confirm(message?: string): boolean;
39511
39529
  */
39512
39530
  declare function focus(): void;
39513
39531
  /**
39514
- * 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.
39532
+ * 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.
39515
39533
  *
39516
39534
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
39517
39535
  */
@@ -39595,22 +39613,22 @@ declare function resizeTo(width: number, height: number): void;
39595
39613
  *
39596
39614
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
39597
39615
  */
39598
- declare function scroll(options?: ScrollToOptions): void;
39599
- declare function scroll(x: number, y: number): void;
39616
+ declare function scroll(options?: ScrollToOptions): Promise<void>;
39617
+ declare function scroll(x: number, y: number): Promise<void>;
39600
39618
  /**
39601
39619
  * The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
39602
39620
  *
39603
39621
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
39604
39622
  */
39605
- declare function scrollBy(options?: ScrollToOptions): void;
39606
- declare function scrollBy(x: number, y: number): void;
39623
+ declare function scrollBy(options?: ScrollToOptions): Promise<void>;
39624
+ declare function scrollBy(x: number, y: number): Promise<void>;
39607
39625
  /**
39608
39626
  * **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
39609
39627
  *
39610
39628
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
39611
39629
  */
39612
- declare function scrollTo(options?: ScrollToOptions): void;
39613
- declare function scrollTo(x: number, y: number): void;
39630
+ declare function scrollTo(options?: ScrollToOptions): Promise<void>;
39631
+ declare function scrollTo(x: number, y: number): Promise<void>;
39614
39632
  /**
39615
39633
  * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
39616
39634
  *
@@ -39660,6 +39678,8 @@ declare var onchange: ((this: Window, ev: Event) => any) | null;
39660
39678
  declare var onclick: ((this: Window, ev: PointerEvent) => any) | null;
39661
39679
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
39662
39680
  declare var onclose: ((this: Window, ev: Event) => any) | null;
39681
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */
39682
+ declare var oncommand: ((this: Window, ev: Event) => any) | null;
39663
39683
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
39664
39684
  declare var oncontextlost: ((this: Window, ev: Event) => any) | null;
39665
39685
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */
package/ts5.6/index.d.ts CHANGED
@@ -5996,7 +5996,7 @@ declare var CSSStartingStyleRule: {
5996
5996
  };
5997
5997
 
5998
5998
  /**
5999
- * The **`CSSStyleDeclaration`** interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
5999
+ * The **`CSSStyleDeclaration`** interface is the base class for objects that represent CSS declaration blocks with different supported sets of CSS style information:
6000
6000
  *
6001
6001
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
6002
6002
  */
@@ -6060,6 +6060,11 @@ declare var CSSStyleDeclaration: {
6060
6060
  new(): CSSStyleDeclaration;
6061
6061
  };
6062
6062
 
6063
+ /**
6064
+ * 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.
6065
+ *
6066
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleProperties)
6067
+ */
6063
6068
  interface CSSStyleProperties extends CSSStyleDeclarationBase {
6064
6069
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
6065
6070
  accentColor: string;
@@ -6348,7 +6353,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6348
6353
  counterReset: string;
6349
6354
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */
6350
6355
  counterSet: string;
6351
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */
6356
+ /**
6357
+ * The **`cssFloat`** property of the CSSStyleProperties interface returns the CSS float property.
6358
+ *
6359
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat)
6360
+ */
6352
6361
  cssFloat: string;
6353
6362
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */
6354
6363
  cursor: string;
@@ -7422,7 +7431,7 @@ interface CSSStyleRule extends CSSGroupingRule {
7422
7431
  */
7423
7432
  selectorText: string;
7424
7433
  /**
7425
- * The read-only **`style`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule.
7434
+ * The read-only **`style`** property is a CSSStyleProperties object that represents the inline styles of a style rule (CSSStyleRule).
7426
7435
  *
7427
7436
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
7428
7437
  */
@@ -9344,7 +9353,7 @@ declare var DOMMatrixReadOnly: {
9344
9353
  */
9345
9354
  interface DOMParser {
9346
9355
  /**
9347
- * The **`parseFromString()`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument.
9356
+ * 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.
9348
9357
  *
9349
9358
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString)
9350
9359
  */
@@ -11382,28 +11391,28 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11382
11391
  *
11383
11392
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll)
11384
11393
  */
11385
- scroll(options?: ScrollToOptions): void;
11386
- scroll(x: number, y: number): void;
11394
+ scroll(options?: ScrollToOptions): Promise<void>;
11395
+ scroll(x: number, y: number): Promise<void>;
11387
11396
  /**
11388
11397
  * The **`scrollBy()`** method of the Element interface scrolls an element by the given amount.
11389
11398
  *
11390
11399
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
11391
11400
  */
11392
- scrollBy(options?: ScrollToOptions): void;
11393
- scrollBy(x: number, y: number): void;
11401
+ scrollBy(options?: ScrollToOptions): Promise<void>;
11402
+ scrollBy(x: number, y: number): Promise<void>;
11394
11403
  /**
11395
11404
  * 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.
11396
11405
  *
11397
11406
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
11398
11407
  */
11399
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
11408
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): Promise<void>;
11400
11409
  /**
11401
11410
  * The **`scrollTo()`** method of the Element interface scrolls to a particular set of coordinates inside a given element.
11402
11411
  *
11403
11412
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
11404
11413
  */
11405
- scrollTo(options?: ScrollToOptions): void;
11406
- scrollTo(x: number, y: number): void;
11414
+ scrollTo(options?: ScrollToOptions): Promise<void>;
11415
+ scrollTo(x: number, y: number): Promise<void>;
11407
11416
  /**
11408
11417
  * The **`setAttribute()`** method of the Element interface sets the value of an attribute on the specified element.
11409
11418
  *
@@ -13032,6 +13041,7 @@ interface GlobalEventHandlersEventMap {
13032
13041
  "change": Event;
13033
13042
  "click": PointerEvent;
13034
13043
  "close": Event;
13044
+ "command": Event;
13035
13045
  "compositionend": CompositionEvent;
13036
13046
  "compositionstart": CompositionEvent;
13037
13047
  "compositionupdate": CompositionEvent;
@@ -13156,6 +13166,8 @@ interface GlobalEventHandlers {
13156
13166
  onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
13157
13167
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
13158
13168
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
13169
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */
13170
+ oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
13159
13171
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
13160
13172
  oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
13161
13173
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */
@@ -32802,6 +32814,12 @@ interface ToggleEvent extends Event {
32802
32814
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState)
32803
32815
  */
32804
32816
  readonly oldState: string;
32817
+ /**
32818
+ * The **`source`** read-only property of the ToggleEvent interface is an Element object instance representing the HTML popover control element that initiated the toggle.
32819
+ *
32820
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/source)
32821
+ */
32822
+ readonly source: Element | null;
32805
32823
  }
32806
32824
 
32807
32825
  declare var ToggleEvent: {
@@ -37370,7 +37388,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
37370
37388
  */
37371
37389
  focus(): void;
37372
37390
  /**
37373
- * 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.
37391
+ * 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.
37374
37392
  *
37375
37393
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
37376
37394
  */
@@ -37454,22 +37472,22 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
37454
37472
  *
37455
37473
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
37456
37474
  */
37457
- scroll(options?: ScrollToOptions): void;
37458
- scroll(x: number, y: number): void;
37475
+ scroll(options?: ScrollToOptions): Promise<void>;
37476
+ scroll(x: number, y: number): Promise<void>;
37459
37477
  /**
37460
37478
  * The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
37461
37479
  *
37462
37480
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
37463
37481
  */
37464
- scrollBy(options?: ScrollToOptions): void;
37465
- scrollBy(x: number, y: number): void;
37482
+ scrollBy(options?: ScrollToOptions): Promise<void>;
37483
+ scrollBy(x: number, y: number): Promise<void>;
37466
37484
  /**
37467
37485
  * **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
37468
37486
  *
37469
37487
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
37470
37488
  */
37471
- scrollTo(options?: ScrollToOptions): void;
37472
- scrollTo(x: number, y: number): void;
37489
+ scrollTo(options?: ScrollToOptions): Promise<void>;
37490
+ scrollTo(x: number, y: number): Promise<void>;
37473
37491
  /**
37474
37492
  * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
37475
37493
  *
@@ -39534,7 +39552,7 @@ declare function confirm(message?: string): boolean;
39534
39552
  */
39535
39553
  declare function focus(): void;
39536
39554
  /**
39537
- * 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.
39555
+ * 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.
39538
39556
  *
39539
39557
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
39540
39558
  */
@@ -39618,22 +39636,22 @@ declare function resizeTo(width: number, height: number): void;
39618
39636
  *
39619
39637
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
39620
39638
  */
39621
- declare function scroll(options?: ScrollToOptions): void;
39622
- declare function scroll(x: number, y: number): void;
39639
+ declare function scroll(options?: ScrollToOptions): Promise<void>;
39640
+ declare function scroll(x: number, y: number): Promise<void>;
39623
39641
  /**
39624
39642
  * The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
39625
39643
  *
39626
39644
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
39627
39645
  */
39628
- declare function scrollBy(options?: ScrollToOptions): void;
39629
- declare function scrollBy(x: number, y: number): void;
39646
+ declare function scrollBy(options?: ScrollToOptions): Promise<void>;
39647
+ declare function scrollBy(x: number, y: number): Promise<void>;
39630
39648
  /**
39631
39649
  * **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
39632
39650
  *
39633
39651
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
39634
39652
  */
39635
- declare function scrollTo(options?: ScrollToOptions): void;
39636
- declare function scrollTo(x: number, y: number): void;
39653
+ declare function scrollTo(options?: ScrollToOptions): Promise<void>;
39654
+ declare function scrollTo(x: number, y: number): Promise<void>;
39637
39655
  /**
39638
39656
  * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
39639
39657
  *
@@ -39683,6 +39701,8 @@ declare var onchange: ((this: Window, ev: Event) => any) | null;
39683
39701
  declare var onclick: ((this: Window, ev: PointerEvent) => any) | null;
39684
39702
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
39685
39703
  declare var onclose: ((this: Window, ev: Event) => any) | null;
39704
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */
39705
+ declare var oncommand: ((this: Window, ev: Event) => any) | null;
39686
39706
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
39687
39707
  declare var oncontextlost: ((this: Window, ev: Event) => any) | null;
39688
39708
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */
package/ts5.9/index.d.ts CHANGED
@@ -5996,7 +5996,7 @@ declare var CSSStartingStyleRule: {
5996
5996
  };
5997
5997
 
5998
5998
  /**
5999
- * The **`CSSStyleDeclaration`** interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
5999
+ * The **`CSSStyleDeclaration`** interface is the base class for objects that represent CSS declaration blocks with different supported sets of CSS style information:
6000
6000
  *
6001
6001
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
6002
6002
  */
@@ -6060,6 +6060,11 @@ declare var CSSStyleDeclaration: {
6060
6060
  new(): CSSStyleDeclaration;
6061
6061
  };
6062
6062
 
6063
+ /**
6064
+ * 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.
6065
+ *
6066
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleProperties)
6067
+ */
6063
6068
  interface CSSStyleProperties extends CSSStyleDeclarationBase {
6064
6069
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
6065
6070
  accentColor: string;
@@ -6348,7 +6353,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6348
6353
  counterReset: string;
6349
6354
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */
6350
6355
  counterSet: string;
6351
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */
6356
+ /**
6357
+ * The **`cssFloat`** property of the CSSStyleProperties interface returns the CSS float property.
6358
+ *
6359
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat)
6360
+ */
6352
6361
  cssFloat: string;
6353
6362
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */
6354
6363
  cursor: string;
@@ -7422,7 +7431,7 @@ interface CSSStyleRule extends CSSGroupingRule {
7422
7431
  */
7423
7432
  selectorText: string;
7424
7433
  /**
7425
- * The read-only **`style`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule.
7434
+ * The read-only **`style`** property is a CSSStyleProperties object that represents the inline styles of a style rule (CSSStyleRule).
7426
7435
  *
7427
7436
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
7428
7437
  */
@@ -9344,7 +9353,7 @@ declare var DOMMatrixReadOnly: {
9344
9353
  */
9345
9354
  interface DOMParser {
9346
9355
  /**
9347
- * The **`parseFromString()`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument.
9356
+ * 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.
9348
9357
  *
9349
9358
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString)
9350
9359
  */
@@ -11382,28 +11391,28 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11382
11391
  *
11383
11392
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll)
11384
11393
  */
11385
- scroll(options?: ScrollToOptions): void;
11386
- scroll(x: number, y: number): void;
11394
+ scroll(options?: ScrollToOptions): Promise<void>;
11395
+ scroll(x: number, y: number): Promise<void>;
11387
11396
  /**
11388
11397
  * The **`scrollBy()`** method of the Element interface scrolls an element by the given amount.
11389
11398
  *
11390
11399
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
11391
11400
  */
11392
- scrollBy(options?: ScrollToOptions): void;
11393
- scrollBy(x: number, y: number): void;
11401
+ scrollBy(options?: ScrollToOptions): Promise<void>;
11402
+ scrollBy(x: number, y: number): Promise<void>;
11394
11403
  /**
11395
11404
  * 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.
11396
11405
  *
11397
11406
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
11398
11407
  */
11399
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
11408
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): Promise<void>;
11400
11409
  /**
11401
11410
  * The **`scrollTo()`** method of the Element interface scrolls to a particular set of coordinates inside a given element.
11402
11411
  *
11403
11412
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
11404
11413
  */
11405
- scrollTo(options?: ScrollToOptions): void;
11406
- scrollTo(x: number, y: number): void;
11414
+ scrollTo(options?: ScrollToOptions): Promise<void>;
11415
+ scrollTo(x: number, y: number): Promise<void>;
11407
11416
  /**
11408
11417
  * The **`setAttribute()`** method of the Element interface sets the value of an attribute on the specified element.
11409
11418
  *
@@ -13032,6 +13041,7 @@ interface GlobalEventHandlersEventMap {
13032
13041
  "change": Event;
13033
13042
  "click": PointerEvent;
13034
13043
  "close": Event;
13044
+ "command": Event;
13035
13045
  "compositionend": CompositionEvent;
13036
13046
  "compositionstart": CompositionEvent;
13037
13047
  "compositionupdate": CompositionEvent;
@@ -13156,6 +13166,8 @@ interface GlobalEventHandlers {
13156
13166
  onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
13157
13167
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
13158
13168
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
13169
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */
13170
+ oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
13159
13171
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
13160
13172
  oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
13161
13173
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */
@@ -32802,6 +32814,12 @@ interface ToggleEvent extends Event {
32802
32814
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState)
32803
32815
  */
32804
32816
  readonly oldState: string;
32817
+ /**
32818
+ * The **`source`** read-only property of the ToggleEvent interface is an Element object instance representing the HTML popover control element that initiated the toggle.
32819
+ *
32820
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/source)
32821
+ */
32822
+ readonly source: Element | null;
32805
32823
  }
32806
32824
 
32807
32825
  declare var ToggleEvent: {
@@ -37370,7 +37388,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
37370
37388
  */
37371
37389
  focus(): void;
37372
37390
  /**
37373
- * 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.
37391
+ * 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.
37374
37392
  *
37375
37393
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
37376
37394
  */
@@ -37454,22 +37472,22 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
37454
37472
  *
37455
37473
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
37456
37474
  */
37457
- scroll(options?: ScrollToOptions): void;
37458
- scroll(x: number, y: number): void;
37475
+ scroll(options?: ScrollToOptions): Promise<void>;
37476
+ scroll(x: number, y: number): Promise<void>;
37459
37477
  /**
37460
37478
  * The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
37461
37479
  *
37462
37480
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
37463
37481
  */
37464
- scrollBy(options?: ScrollToOptions): void;
37465
- scrollBy(x: number, y: number): void;
37482
+ scrollBy(options?: ScrollToOptions): Promise<void>;
37483
+ scrollBy(x: number, y: number): Promise<void>;
37466
37484
  /**
37467
37485
  * **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
37468
37486
  *
37469
37487
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
37470
37488
  */
37471
- scrollTo(options?: ScrollToOptions): void;
37472
- scrollTo(x: number, y: number): void;
37489
+ scrollTo(options?: ScrollToOptions): Promise<void>;
37490
+ scrollTo(x: number, y: number): Promise<void>;
37473
37491
  /**
37474
37492
  * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
37475
37493
  *
@@ -39534,7 +39552,7 @@ declare function confirm(message?: string): boolean;
39534
39552
  */
39535
39553
  declare function focus(): void;
39536
39554
  /**
39537
- * 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.
39555
+ * 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.
39538
39556
  *
39539
39557
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
39540
39558
  */
@@ -39618,22 +39636,22 @@ declare function resizeTo(width: number, height: number): void;
39618
39636
  *
39619
39637
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
39620
39638
  */
39621
- declare function scroll(options?: ScrollToOptions): void;
39622
- declare function scroll(x: number, y: number): void;
39639
+ declare function scroll(options?: ScrollToOptions): Promise<void>;
39640
+ declare function scroll(x: number, y: number): Promise<void>;
39623
39641
  /**
39624
39642
  * The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.
39625
39643
  *
39626
39644
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
39627
39645
  */
39628
- declare function scrollBy(options?: ScrollToOptions): void;
39629
- declare function scrollBy(x: number, y: number): void;
39646
+ declare function scrollBy(options?: ScrollToOptions): Promise<void>;
39647
+ declare function scrollBy(x: number, y: number): Promise<void>;
39630
39648
  /**
39631
39649
  * **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.
39632
39650
  *
39633
39651
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
39634
39652
  */
39635
- declare function scrollTo(options?: ScrollToOptions): void;
39636
- declare function scrollTo(x: number, y: number): void;
39653
+ declare function scrollTo(options?: ScrollToOptions): Promise<void>;
39654
+ declare function scrollTo(x: number, y: number): Promise<void>;
39637
39655
  /**
39638
39656
  * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
39639
39657
  *
@@ -39683,6 +39701,8 @@ declare var onchange: ((this: Window, ev: Event) => any) | null;
39683
39701
  declare var onclick: ((this: Window, ev: PointerEvent) => any) | null;
39684
39702
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
39685
39703
  declare var onclose: ((this: Window, ev: Event) => any) | null;
39704
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/command_event) */
39705
+ declare var oncommand: ((this: Window, ev: Event) => any) | null;
39686
39706
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
39687
39707
  declare var oncontextlost: ((this: Window, ev: Event) => any) | null;
39688
39708
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */