@@ -578,6 +578,11 @@ interface GetAnimationsOptions {
578
578
subtree?: boolean;
579
579
}
580
580
581
+ interface GetHTMLOptions {
582
+ serializableShadowRoots?: boolean;
583
+ shadowRoots?: ShadowRoot[];
584
+ }
585
+
581
586
interface GetNotificationOptions {
582
587
tag?: string;
583
588
}
@@ -840,6 +845,10 @@ interface MediaKeySystemMediaCapability {
840
845
robustness?: string;
841
846
}
842
847
848
+ interface MediaKeysPolicy {
849
+ minHdcpVersion?: string;
850
+ }
851
+
843
852
interface MediaMetadataInit {
844
853
album?: string;
845
854
artist?: string;
@@ -4648,6 +4657,8 @@ interface CSSStyleDeclaration {
4648
4657
vectorEffect: string;
4649
4658
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
4650
4659
verticalAlign: string;
4660
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
4661
+ viewTransitionName: string;
4651
4662
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
4652
4663
visibility: string;
4653
4664
/**
@@ -7456,6 +7467,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
7456
7467
releaseEvents(): void;
7457
7468
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */
7458
7469
requestStorageAccess(): Promise<void>;
7470
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */
7471
+ startViewTransition(callbackOptions?: UpdateCallback): ViewTransition;
7459
7472
/**
7460
7473
* Writes one or more HTML expressions to a document in the specified window.
7461
7474
* @param content Specifies the text and HTML tags to write.
@@ -7847,6 +7860,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
7847
7860
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
7848
7861
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
7849
7862
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
7863
+ getHTML(options?: GetHTMLOptions): string;
7850
7864
/**
7851
7865
* Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
7852
7866
*
@@ -8899,6 +8913,7 @@ interface GeolocationCoordinates {
8899
8913
readonly longitude: number;
8900
8914
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */
8901
8915
readonly speed: number | null;
8916
+ toJSON(): any;
8902
8917
}
8903
8918
8904
8919
declare var GeolocationCoordinates: {
@@ -8916,6 +8931,7 @@ interface GeolocationPosition {
8916
8931
readonly coords: GeolocationCoordinates;
8917
8932
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */
8918
8933
readonly timestamp: EpochTimeStamp;
8934
+ toJSON(): any;
8919
8935
}
8920
8936
8921
8937
declare var GeolocationPosition: {
@@ -10172,6 +10188,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
10172
10188
accessKey: string;
10173
10189
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */
10174
10190
readonly accessKeyLabel: string;
10191
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) */
10175
10192
autocapitalize: string;
10176
10193
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */
10177
10194
dir: string;
@@ -10245,7 +10262,11 @@ interface HTMLEmbedElement extends HTMLElement {
10245
10262
* @deprecated
10246
10263
*/
10247
10264
name: string;
10248
- /** Sets or retrieves a URL to be loaded by the object. */
10265
+ /**
10266
+ * Sets or retrieves a URL to be loaded by the object.
10267
+ *
10268
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/src)
10269
+ */
10249
10270
src: string;
10250
10271
type: string;
10251
10272
/**
@@ -13365,6 +13386,8 @@ interface HTMLTemplateElement extends HTMLElement {
13365
13386
shadowRootDelegatesFocus: boolean;
13366
13387
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode) */
13367
13388
shadowRootMode: string;
13389
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */
13390
+ shadowRootSerializable: boolean;
13368
13391
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13369
13392
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
13370
13393
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -15321,6 +15344,7 @@ declare var MediaKeySystemAccess: {
15321
15344
interface MediaKeys {
15322
15345
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) */
15323
15346
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
15347
+ getStatusForPolicy(policy?: MediaKeysPolicy): Promise<MediaKeyStatus>;
15324
15348
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate) */
15325
15349
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
15326
15350
}
@@ -15538,10 +15562,21 @@ interface MediaSource extends EventTarget {
15538
15562
declare var MediaSource: {
15539
15563
prototype: MediaSource;
15540
15564
new(): MediaSource;
15565
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/canConstructInDedicatedWorker_static) */
15566
+ readonly canConstructInDedicatedWorker: boolean;
15541
15567
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */
15542
15568
isTypeSupported(type: string): boolean;
15543
15569
};
15544
15570
15571
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle) */
15572
+ interface MediaSourceHandle {
15573
+ }
15574
+
15575
+ declare var MediaSourceHandle: {
15576
+ prototype: MediaSourceHandle;
15577
+ new(): MediaSourceHandle;
15578
+ };
15579
+
15545
15580
interface MediaStreamEventMap {
15546
15581
"addtrack": MediaStreamTrackEvent;
15547
15582
"removetrack": MediaStreamTrackEvent;
@@ -17934,6 +17969,7 @@ declare var PointerEvent: {
17934
17969
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent)
17935
17970
*/
17936
17971
interface PopStateEvent extends Event {
17972
+ readonly hasUAVisualTransition: boolean;
17937
17973
/**
17938
17974
* Returns a copy of the information that was provided to pushState() or replaceState().
17939
17975
*
@@ -21605,8 +21641,10 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
21605
21641
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */
21606
21642
readonly mode: ShadowRootMode;
21607
21643
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
21644
+ readonly serializable: boolean;
21608
21645
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */
21609
21646
readonly slotAssignment: SlotAssignmentMode;
21647
+ getHTML(options?: GetHTMLOptions): string;
21610
21648
setHTMLUnsafe(html: string): void;
21611
21649
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
21612
21650
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -22954,6 +22992,8 @@ declare var URL: {
22954
22992
canParse(url: string | URL, base?: string): boolean;
22955
22993
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
22956
22994
createObjectURL(obj: Blob | MediaSource): string;
22995
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */
22996
+ parse(url: string | URL, base?: string): URL | null;
22957
22997
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
22958
22998
revokeObjectURL(url: string): void;
22959
22999
};
@@ -23275,6 +23315,23 @@ declare var VideoPlaybackQuality: {
23275
23315
new(): VideoPlaybackQuality;
23276
23316
};
23277
23317
23318
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition) */
23319
+ interface ViewTransition {
23320
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/finished) */
23321
+ readonly finished: Promise<undefined>;
23322
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */
23323
+ readonly ready: Promise<undefined>;
23324
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */
23325
+ readonly updateCallbackDone: Promise<undefined>;
23326
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */
23327
+ skipTransition(): void;
23328
+ }
23329
+
23330
+ declare var ViewTransition: {
23331
+ prototype: ViewTransition;
23332
+ new(): ViewTransition;
23333
+ };
23334
+
23278
23335
interface VisualViewportEventMap {
23279
23336
"resize": Event;
23280
23337
"scroll": Event;
@@ -25023,6 +25080,7 @@ declare var WebGLRenderingContext: {
25023
25080
interface WebGLRenderingContextBase {
25024
25081
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */
25025
25082
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
25083
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferColorSpace) */
25026
25084
drawingBufferColorSpace: PredefinedColorSpace;
25027
25085
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
25028
25086
readonly drawingBufferHeight: GLsizei;
@@ -27316,6 +27374,10 @@ interface UnderlyingSourceStartCallback<R> {
27316
27374
(controller: ReadableStreamController<R>): any;
27317
27375
}
27318
27376
27377
+ interface UpdateCallback {
27378
+ (): any;
27379
+ }
27380
+
27319
27381
interface VideoFrameOutputCallback {
27320
27382
(output: VideoFrame): void;
27321
27383
}
@@ -28458,7 +28520,7 @@ type ReportList = Report[];
28458
28520
type RequestInfo = Request | string;
28459
28521
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
28460
28522
type TimerHandler = string | Function;
28461
- type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
28523
+ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
28462
28524
type Uint32List = Uint32Array | GLuint[];
28463
28525
type VibratePattern = number | number[];
28464
28526
type WindowProxy = Window;
0 commit comments