From f8ba9045a41bf682ec0cd0dc8e9291dd63b68e75 Mon Sep 17 00:00:00 2001 From: orta <49038+orta@users.noreply.github.com> Date: Wed, 22 Apr 2026 08:46:39 +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/audioworklet.generated.d.ts | 14 +- baselines/dom.generated.d.ts | 113 +++-- baselines/serviceworker.generated.d.ts | 52 ++- baselines/sharedworker.generated.d.ts | 52 ++- baselines/ts5.5/audioworklet.generated.d.ts | 14 +- baselines/ts5.5/dom.generated.d.ts | 113 +++-- baselines/ts5.5/serviceworker.generated.d.ts | 52 ++- baselines/ts5.5/sharedworker.generated.d.ts | 52 ++- baselines/ts5.5/webworker.generated.d.ts | 54 ++- baselines/ts5.6/audioworklet.generated.d.ts | 14 +- baselines/ts5.6/dom.generated.d.ts | 113 +++-- baselines/ts5.6/serviceworker.generated.d.ts | 52 ++- baselines/ts5.6/sharedworker.generated.d.ts | 52 ++- baselines/ts5.6/webworker.generated.d.ts | 54 ++- baselines/ts5.9/audioworklet.generated.d.ts | 14 +- baselines/ts5.9/dom.generated.d.ts | 113 +++-- baselines/ts5.9/serviceworker.generated.d.ts | 52 ++- baselines/ts5.9/sharedworker.generated.d.ts | 52 ++- baselines/ts5.9/webworker.generated.d.ts | 54 ++- baselines/webworker.generated.d.ts | 54 ++- inputfiles/mdn.json | 415 +++++++++++-------- package-lock.json | 12 +- 22 files changed, 1198 insertions(+), 369 deletions(-) diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index a5e675ab0..81698c55e 100644 --- a/baselines/audioworklet.generated.d.ts +++ b/baselines/audioworklet.generated.d.ts @@ -600,7 +600,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -831,6 +831,18 @@ declare var MessagePort: { new(): MessagePort; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes. * diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 0fc03d891..07c6f701d 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -2639,8 +2639,10 @@ interface SanitizerConfig { comments?: boolean; dataAttributes?: boolean; elements?: SanitizerElementWithAttributes[]; + processingInstructions?: SanitizerPI[]; removeAttributes?: SanitizerAttribute[]; removeElements?: SanitizerElement[]; + removeProcessingInstructions?: SanitizerPI[]; replaceWithChildrenElements?: SanitizerElement[]; } @@ -2654,6 +2656,10 @@ interface SanitizerElementNamespaceWithAttributes extends SanitizerElementNamesp removeAttributes?: SanitizerAttribute[]; } +interface SanitizerProcessingInstruction { + target: string; +} + interface SchedulerPostTaskOptions { delay?: number; priority?: TaskPriority; @@ -5705,9 +5711,29 @@ declare var CSSLayerStatementRule: { new(): CSSLayerStatementRule; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -9299,7 +9325,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { */ vectorEffect: string; /** - * The vertical-align CSS property sets vertical alignment of an inline, inline-block or table-cell box. + * The vertical-align CSS shorthand property sets the vertical alignment of an inline, inline-block, or table-cell box. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/vertical-align) */ @@ -10104,13 +10130,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -10494,7 +10520,7 @@ interface CanvasRect { */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** - * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. It might be null if there is no associated element. + * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ @@ -11215,6 +11241,12 @@ interface Credential { declare var Credential: { prototype: Credential; new(): Credential; + /** + * The **`isConditionalMediationAvailable()`** static method of the Credential interface returns a Promise which resolves to false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/isConditionalMediationAvailable_static) + */ + isConditionalMediationAvailable(): Promise; }; /** @@ -11504,7 +11536,7 @@ declare var DOMException: { */ interface DOMImplementation { /** - * The **`DOMImplementation.createDocument()`** method creates and returns an XMLDocument. + * The **`createDocument()`** method of the DOMImplementation interface creates and returns an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ @@ -13000,13 +13032,13 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ close(): void; /** - * The **`Document.createAttribute()`** method creates a new attribute node, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttribute()`** method of the Document interface creates a new attribute node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** - * The **`Document.createAttributeNS()`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttributeNS()`** method of the Document interface creates a new attribute node with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ @@ -13030,7 +13062,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ createDocumentFragment(): DocumentFragment; /** - * In an HTML document, the **`document.createElement()`** method creates the HTML element specified by localName, or an HTMLUnknownElement if localName isn't recognized. + * The **`createElement()`** method of the Document interface creates a new HTMLElement that has the specified localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) */ @@ -13039,7 +13071,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** - * Creates an element with the specified namespace URI and qualified name. + * The **`createElementNS()`** method of the Document interface creates a new element with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ @@ -14012,7 +14044,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp */ setPointerCapture(pointerId: number): void; /** - * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute (removing it if it is present and adding it if it is not present) on the given element. + * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute on the given element, removing it if present and adding it if not present. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) */ @@ -14314,7 +14346,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -18529,7 +18561,7 @@ interface HTMLIFrameElement extends HTMLElement { */ height: string; /** - * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed. + * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the browser indicating whether the iframe should be loaded immediately on page load, or only when it is needed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */ @@ -18672,7 +18704,7 @@ interface HTMLImageElement extends HTMLElement { */ isMap: boolean; /** - * The **`loading`** property of the HTMLImageElement interface provides a hint to the user agent on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. + * The **`loading`** property of the HTMLImageElement interface provides a hint to the browser on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading) */ @@ -18712,7 +18744,7 @@ interface HTMLImageElement extends HTMLElement { */ referrerPolicy: string; /** - * The **`sizes`** property of the HTMLImageElement interface allows you to specify the layout width of the image for each of a list of media queries. This provides the ability to automatically select among different images—even images of different orientations or aspect ratios—as the document state changes to match different media conditions. It reflects the element's sizes content attribute. + * The **`sizes`** property of the HTMLImageElement interface allows you to specify the layout width of the image for each of a list of media queries, or auto for lazy-loaded images to allow the browser to automatically select an image to display based on the layout size of the element. This allows the browser to choose between different images specified in the element srcset to match different media conditions — even images with different orientations or aspect ratios. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes) */ @@ -21920,7 +21952,7 @@ declare var Headers: { }; /** - * The **`Highlight`** interface of the CSS Custom Highlight API is used to represent a collection of Range instances to be styled using the API. + * The **`Highlight`** interface of the CSS Custom Highlight API is used to represent a collection of AbstractRange instances to be styled using the API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */ @@ -25881,7 +25913,7 @@ declare var NavigationPreloadManager: { }; /** - * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation, that is, a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. + * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation — a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition) */ @@ -26909,7 +26941,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -26940,6 +26972,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`OscillatorNode`** interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. * @@ -27064,7 +27108,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28046,6 +28092,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -29309,7 +29361,7 @@ interface RTCEncodedVideoFrame { */ readonly timestamp: number; /** - * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame. + * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame or a delta frame. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ @@ -34732,7 +34784,11 @@ declare var SVGViewElement: { new(): SVGViewElement; }; -/** The **`Sanitizer`** interface of the HTML Sanitizer API defines a configuration object that specifies what elements, attributes and comments are allowed or should be removed when inserting strings of HTML into an Element or ShadowRoot, or when parsing an HTML string into a Document. */ +/** + * The **`Sanitizer`** interface of the HTML Sanitizer API defines a configuration object that specifies what elements, attributes and comments are allowed or should be removed when inserting strings of HTML into an Element or ShadowRoot, or when parsing an HTML string into a Document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Sanitizer) + */ interface Sanitizer { /** * The **`allowAttribute()`** method of the Sanitizer interface sets an attribute to be allowed on all elements when the sanitizer is used. @@ -34996,7 +35052,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -38626,13 +38682,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ @@ -41421,7 +41477,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -42590,6 +42646,7 @@ declare namespace CSS { function Hz(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function Q(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function cap(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ch(value: number): CSSUnitValue; @@ -42641,9 +42698,11 @@ declare namespace CSS { function fr(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function grad(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ic(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function kHz(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lh(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lvb(value: number): CSSUnitValue; @@ -42673,7 +42732,9 @@ declare namespace CSS { function px(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rad(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rcap(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rch(value: number): CSSUnitValue; /** * The **`CSS.registerProperty()`** static method registers custom properties, allowing for property type checking, default values, and properties that do or do not inherit their value. @@ -42683,8 +42744,11 @@ declare namespace CSS { function registerProperty(definition: PropertyDefinition): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rem(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rex(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ric(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rlh(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function s(value: number): CSSUnitValue; @@ -43606,7 +43670,7 @@ declare var closed: boolean; */ declare var cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -44460,6 +44524,7 @@ type RequestInfo = Request | string; type SanitizerAttribute = string | SanitizerAttributeNamespace; type SanitizerElement = string | SanitizerElementNamespace; type SanitizerElementWithAttributes = string | SanitizerElementNamespaceWithAttributes; +type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 6a6f2f81a..8b03c1131 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -1560,9 +1560,29 @@ declare var CSSKeywordValue: { new(value: string): CSSKeywordValue; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -2073,13 +2093,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -3736,7 +3756,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -7236,7 +7256,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -7267,6 +7287,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7548,6 +7580,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8490,7 +8528,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -9784,13 +9822,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 60fecb754..f558c0e2b 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -1496,9 +1496,29 @@ declare var CSSKeywordValue: { new(value: string): CSSKeywordValue; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -2009,13 +2029,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -3517,7 +3537,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -6894,7 +6914,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -6925,6 +6945,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7206,6 +7238,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8073,7 +8111,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -9327,13 +9365,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ diff --git a/baselines/ts5.5/audioworklet.generated.d.ts b/baselines/ts5.5/audioworklet.generated.d.ts index 395bce894..8254245fa 100644 --- a/baselines/ts5.5/audioworklet.generated.d.ts +++ b/baselines/ts5.5/audioworklet.generated.d.ts @@ -597,7 +597,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -828,6 +828,18 @@ declare var MessagePort: { new(): MessagePort; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes. * diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 1a31d3001..be6623b0f 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -2636,8 +2636,10 @@ interface SanitizerConfig { comments?: boolean; dataAttributes?: boolean; elements?: SanitizerElementWithAttributes[]; + processingInstructions?: SanitizerPI[]; removeAttributes?: SanitizerAttribute[]; removeElements?: SanitizerElement[]; + removeProcessingInstructions?: SanitizerPI[]; replaceWithChildrenElements?: SanitizerElement[]; } @@ -2651,6 +2653,10 @@ interface SanitizerElementNamespaceWithAttributes extends SanitizerElementNamesp removeAttributes?: SanitizerAttribute[]; } +interface SanitizerProcessingInstruction { + target: string; +} + interface SchedulerPostTaskOptions { delay?: number; priority?: TaskPriority; @@ -5699,9 +5705,29 @@ declare var CSSLayerStatementRule: { new(): CSSLayerStatementRule; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -9289,7 +9315,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { */ vectorEffect: string; /** - * The vertical-align CSS property sets vertical alignment of an inline, inline-block or table-cell box. + * The vertical-align CSS shorthand property sets the vertical alignment of an inline, inline-block, or table-cell box. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/vertical-align) */ @@ -10093,13 +10119,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -10483,7 +10509,7 @@ interface CanvasRect { */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** - * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. It might be null if there is no associated element. + * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ @@ -11204,6 +11230,12 @@ interface Credential { declare var Credential: { prototype: Credential; new(): Credential; + /** + * The **`isConditionalMediationAvailable()`** static method of the Credential interface returns a Promise which resolves to false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/isConditionalMediationAvailable_static) + */ + isConditionalMediationAvailable(): Promise; }; /** @@ -11493,7 +11525,7 @@ declare var DOMException: { */ interface DOMImplementation { /** - * The **`DOMImplementation.createDocument()`** method creates and returns an XMLDocument. + * The **`createDocument()`** method of the DOMImplementation interface creates and returns an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ @@ -12989,13 +13021,13 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ close(): void; /** - * The **`Document.createAttribute()`** method creates a new attribute node, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttribute()`** method of the Document interface creates a new attribute node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** - * The **`Document.createAttributeNS()`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttributeNS()`** method of the Document interface creates a new attribute node with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ @@ -13019,7 +13051,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ createDocumentFragment(): DocumentFragment; /** - * In an HTML document, the **`document.createElement()`** method creates the HTML element specified by localName, or an HTMLUnknownElement if localName isn't recognized. + * The **`createElement()`** method of the Document interface creates a new HTMLElement that has the specified localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) */ @@ -13028,7 +13060,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** - * Creates an element with the specified namespace URI and qualified name. + * The **`createElementNS()`** method of the Document interface creates a new element with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ @@ -13999,7 +14031,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp */ setPointerCapture(pointerId: number): void; /** - * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute (removing it if it is present and adding it if it is not present) on the given element. + * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute on the given element, removing it if present and adding it if not present. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) */ @@ -14300,7 +14332,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -18512,7 +18544,7 @@ interface HTMLIFrameElement extends HTMLElement { */ height: string; /** - * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed. + * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the browser indicating whether the iframe should be loaded immediately on page load, or only when it is needed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */ @@ -18654,7 +18686,7 @@ interface HTMLImageElement extends HTMLElement { */ isMap: boolean; /** - * The **`loading`** property of the HTMLImageElement interface provides a hint to the user agent on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. + * The **`loading`** property of the HTMLImageElement interface provides a hint to the browser on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading) */ @@ -18694,7 +18726,7 @@ interface HTMLImageElement extends HTMLElement { */ referrerPolicy: string; /** - * The **`sizes`** property of the HTMLImageElement interface allows you to specify the layout width of the image for each of a list of media queries. This provides the ability to automatically select among different images—even images of different orientations or aspect ratios—as the document state changes to match different media conditions. It reflects the element's sizes content attribute. + * The **`sizes`** property of the HTMLImageElement interface allows you to specify the layout width of the image for each of a list of media queries, or auto for lazy-loaded images to allow the browser to automatically select an image to display based on the layout size of the element. This allows the browser to choose between different images specified in the element srcset to match different media conditions — even images with different orientations or aspect ratios. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes) */ @@ -21896,7 +21928,7 @@ declare var Headers: { }; /** - * The **`Highlight`** interface of the CSS Custom Highlight API is used to represent a collection of Range instances to be styled using the API. + * The **`Highlight`** interface of the CSS Custom Highlight API is used to represent a collection of AbstractRange instances to be styled using the API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */ @@ -25857,7 +25889,7 @@ declare var NavigationPreloadManager: { }; /** - * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation, that is, a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. + * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation — a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition) */ @@ -26885,7 +26917,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -26916,6 +26948,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`OscillatorNode`** interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. * @@ -27040,7 +27084,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28022,6 +28068,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -29285,7 +29337,7 @@ interface RTCEncodedVideoFrame { */ readonly timestamp: number; /** - * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame. + * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame or a delta frame. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ @@ -34707,7 +34759,11 @@ declare var SVGViewElement: { new(): SVGViewElement; }; -/** The **`Sanitizer`** interface of the HTML Sanitizer API defines a configuration object that specifies what elements, attributes and comments are allowed or should be removed when inserting strings of HTML into an Element or ShadowRoot, or when parsing an HTML string into a Document. */ +/** + * The **`Sanitizer`** interface of the HTML Sanitizer API defines a configuration object that specifies what elements, attributes and comments are allowed or should be removed when inserting strings of HTML into an Element or ShadowRoot, or when parsing an HTML string into a Document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Sanitizer) + */ interface Sanitizer { /** * The **`allowAttribute()`** method of the Sanitizer interface sets an attribute to be allowed on all elements when the sanitizer is used. @@ -34971,7 +35027,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -38600,13 +38656,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ @@ -41395,7 +41451,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -42564,6 +42620,7 @@ declare namespace CSS { function Hz(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function Q(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function cap(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ch(value: number): CSSUnitValue; @@ -42615,9 +42672,11 @@ declare namespace CSS { function fr(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function grad(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ic(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function kHz(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lh(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lvb(value: number): CSSUnitValue; @@ -42647,7 +42706,9 @@ declare namespace CSS { function px(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rad(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rcap(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rch(value: number): CSSUnitValue; /** * The **`CSS.registerProperty()`** static method registers custom properties, allowing for property type checking, default values, and properties that do or do not inherit their value. @@ -42657,8 +42718,11 @@ declare namespace CSS { function registerProperty(definition: PropertyDefinition): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rem(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rex(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ric(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rlh(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function s(value: number): CSSUnitValue; @@ -43580,7 +43644,7 @@ declare var closed: boolean; */ declare var cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -44434,6 +44498,7 @@ type RequestInfo = Request | string; type SanitizerAttribute = string | SanitizerAttributeNamespace; type SanitizerElement = string | SanitizerElementNamespace; type SanitizerElementWithAttributes = string | SanitizerElementNamespaceWithAttributes; +type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 62e2c9525..cdcb71290 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -1557,9 +1557,29 @@ declare var CSSKeywordValue: { new(value: string): CSSKeywordValue; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -2070,13 +2090,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -3733,7 +3753,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -7233,7 +7253,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -7264,6 +7284,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7545,6 +7577,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8487,7 +8525,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -9781,13 +9819,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 172127d23..3b30facd7 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -1493,9 +1493,29 @@ declare var CSSKeywordValue: { new(value: string): CSSKeywordValue; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -2006,13 +2026,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -3514,7 +3534,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -6891,7 +6911,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -6922,6 +6942,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7203,6 +7235,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8070,7 +8108,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -9324,13 +9362,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 90c552e78..f1524eae9 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -2036,9 +2036,29 @@ declare var CSSKeywordValue: { new(value: string): CSSKeywordValue; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -2549,13 +2569,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -4342,7 +4362,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -8107,7 +8127,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -8138,6 +8158,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -8419,6 +8451,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -9064,7 +9102,7 @@ interface RTCEncodedVideoFrame { */ readonly timestamp: number; /** - * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame. + * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame or a delta frame. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ @@ -9610,7 +9648,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -11236,13 +11274,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ diff --git a/baselines/ts5.6/audioworklet.generated.d.ts b/baselines/ts5.6/audioworklet.generated.d.ts index 395bce894..8254245fa 100644 --- a/baselines/ts5.6/audioworklet.generated.d.ts +++ b/baselines/ts5.6/audioworklet.generated.d.ts @@ -597,7 +597,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -828,6 +828,18 @@ declare var MessagePort: { new(): MessagePort; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes. * diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 82d64341e..95161bc43 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -2636,8 +2636,10 @@ interface SanitizerConfig { comments?: boolean; dataAttributes?: boolean; elements?: SanitizerElementWithAttributes[]; + processingInstructions?: SanitizerPI[]; removeAttributes?: SanitizerAttribute[]; removeElements?: SanitizerElement[]; + removeProcessingInstructions?: SanitizerPI[]; replaceWithChildrenElements?: SanitizerElement[]; } @@ -2651,6 +2653,10 @@ interface SanitizerElementNamespaceWithAttributes extends SanitizerElementNamesp removeAttributes?: SanitizerAttribute[]; } +interface SanitizerProcessingInstruction { + target: string; +} + interface SchedulerPostTaskOptions { delay?: number; priority?: TaskPriority; @@ -5702,9 +5708,29 @@ declare var CSSLayerStatementRule: { new(): CSSLayerStatementRule; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -9296,7 +9322,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { */ vectorEffect: string; /** - * The vertical-align CSS property sets vertical alignment of an inline, inline-block or table-cell box. + * The vertical-align CSS shorthand property sets the vertical alignment of an inline, inline-block, or table-cell box. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/vertical-align) */ @@ -10101,13 +10127,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -10491,7 +10517,7 @@ interface CanvasRect { */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** - * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. It might be null if there is no associated element. + * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ @@ -11212,6 +11238,12 @@ interface Credential { declare var Credential: { prototype: Credential; new(): Credential; + /** + * The **`isConditionalMediationAvailable()`** static method of the Credential interface returns a Promise which resolves to false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/isConditionalMediationAvailable_static) + */ + isConditionalMediationAvailable(): Promise; }; /** @@ -11501,7 +11533,7 @@ declare var DOMException: { */ interface DOMImplementation { /** - * The **`DOMImplementation.createDocument()`** method creates and returns an XMLDocument. + * The **`createDocument()`** method of the DOMImplementation interface creates and returns an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ @@ -12997,13 +13029,13 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ close(): void; /** - * The **`Document.createAttribute()`** method creates a new attribute node, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttribute()`** method of the Document interface creates a new attribute node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** - * The **`Document.createAttributeNS()`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttributeNS()`** method of the Document interface creates a new attribute node with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ @@ -13027,7 +13059,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ createDocumentFragment(): DocumentFragment; /** - * In an HTML document, the **`document.createElement()`** method creates the HTML element specified by localName, or an HTMLUnknownElement if localName isn't recognized. + * The **`createElement()`** method of the Document interface creates a new HTMLElement that has the specified localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) */ @@ -13036,7 +13068,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** - * Creates an element with the specified namespace URI and qualified name. + * The **`createElementNS()`** method of the Document interface creates a new element with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ @@ -14009,7 +14041,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp */ setPointerCapture(pointerId: number): void; /** - * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute (removing it if it is present and adding it if it is not present) on the given element. + * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute on the given element, removing it if present and adding it if not present. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) */ @@ -14311,7 +14343,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -18526,7 +18558,7 @@ interface HTMLIFrameElement extends HTMLElement { */ height: string; /** - * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed. + * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the browser indicating whether the iframe should be loaded immediately on page load, or only when it is needed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */ @@ -18669,7 +18701,7 @@ interface HTMLImageElement extends HTMLElement { */ isMap: boolean; /** - * The **`loading`** property of the HTMLImageElement interface provides a hint to the user agent on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. + * The **`loading`** property of the HTMLImageElement interface provides a hint to the browser on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading) */ @@ -18709,7 +18741,7 @@ interface HTMLImageElement extends HTMLElement { */ referrerPolicy: string; /** - * The **`sizes`** property of the HTMLImageElement interface allows you to specify the layout width of the image for each of a list of media queries. This provides the ability to automatically select among different images—even images of different orientations or aspect ratios—as the document state changes to match different media conditions. It reflects the element's sizes content attribute. + * The **`sizes`** property of the HTMLImageElement interface allows you to specify the layout width of the image for each of a list of media queries, or auto for lazy-loaded images to allow the browser to automatically select an image to display based on the layout size of the element. This allows the browser to choose between different images specified in the element srcset to match different media conditions — even images with different orientations or aspect ratios. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes) */ @@ -21917,7 +21949,7 @@ declare var Headers: { }; /** - * The **`Highlight`** interface of the CSS Custom Highlight API is used to represent a collection of Range instances to be styled using the API. + * The **`Highlight`** interface of the CSS Custom Highlight API is used to represent a collection of AbstractRange instances to be styled using the API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */ @@ -25878,7 +25910,7 @@ declare var NavigationPreloadManager: { }; /** - * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation, that is, a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. + * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation — a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition) */ @@ -26906,7 +26938,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -26937,6 +26969,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`OscillatorNode`** interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. * @@ -27061,7 +27105,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28043,6 +28089,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -29306,7 +29358,7 @@ interface RTCEncodedVideoFrame { */ readonly timestamp: number; /** - * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame. + * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame or a delta frame. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ @@ -34729,7 +34781,11 @@ declare var SVGViewElement: { new(): SVGViewElement; }; -/** The **`Sanitizer`** interface of the HTML Sanitizer API defines a configuration object that specifies what elements, attributes and comments are allowed or should be removed when inserting strings of HTML into an Element or ShadowRoot, or when parsing an HTML string into a Document. */ +/** + * The **`Sanitizer`** interface of the HTML Sanitizer API defines a configuration object that specifies what elements, attributes and comments are allowed or should be removed when inserting strings of HTML into an Element or ShadowRoot, or when parsing an HTML string into a Document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Sanitizer) + */ interface Sanitizer { /** * The **`allowAttribute()`** method of the Sanitizer interface sets an attribute to be allowed on all elements when the sanitizer is used. @@ -34993,7 +35049,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -38623,13 +38679,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ @@ -41418,7 +41474,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -42587,6 +42643,7 @@ declare namespace CSS { function Hz(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function Q(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function cap(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ch(value: number): CSSUnitValue; @@ -42638,9 +42695,11 @@ declare namespace CSS { function fr(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function grad(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ic(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function kHz(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lh(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lvb(value: number): CSSUnitValue; @@ -42670,7 +42729,9 @@ declare namespace CSS { function px(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rad(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rcap(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rch(value: number): CSSUnitValue; /** * The **`CSS.registerProperty()`** static method registers custom properties, allowing for property type checking, default values, and properties that do or do not inherit their value. @@ -42680,8 +42741,11 @@ declare namespace CSS { function registerProperty(definition: PropertyDefinition): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rem(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rex(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ric(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rlh(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function s(value: number): CSSUnitValue; @@ -43603,7 +43667,7 @@ declare var closed: boolean; */ declare var cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -44457,6 +44521,7 @@ type RequestInfo = Request | string; type SanitizerAttribute = string | SanitizerAttributeNamespace; type SanitizerElement = string | SanitizerElementNamespace; type SanitizerElementWithAttributes = string | SanitizerElementNamespaceWithAttributes; +type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index 62e2c9525..cdcb71290 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -1557,9 +1557,29 @@ declare var CSSKeywordValue: { new(value: string): CSSKeywordValue; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -2070,13 +2090,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -3733,7 +3753,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -7233,7 +7253,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -7264,6 +7284,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7545,6 +7577,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8487,7 +8525,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -9781,13 +9819,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 172127d23..3b30facd7 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -1493,9 +1493,29 @@ declare var CSSKeywordValue: { new(value: string): CSSKeywordValue; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -2006,13 +2026,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -3514,7 +3534,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -6891,7 +6911,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -6922,6 +6942,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7203,6 +7235,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8070,7 +8108,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -9324,13 +9362,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 90c552e78..f1524eae9 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -2036,9 +2036,29 @@ declare var CSSKeywordValue: { new(value: string): CSSKeywordValue; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -2549,13 +2569,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -4342,7 +4362,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -8107,7 +8127,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -8138,6 +8158,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -8419,6 +8451,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -9064,7 +9102,7 @@ interface RTCEncodedVideoFrame { */ readonly timestamp: number; /** - * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame. + * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame or a delta frame. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ @@ -9610,7 +9648,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -11236,13 +11274,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ diff --git a/baselines/ts5.9/audioworklet.generated.d.ts b/baselines/ts5.9/audioworklet.generated.d.ts index 804979cbb..504ee98a3 100644 --- a/baselines/ts5.9/audioworklet.generated.d.ts +++ b/baselines/ts5.9/audioworklet.generated.d.ts @@ -597,7 +597,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -828,6 +828,18 @@ declare var MessagePort: { new(): MessagePort; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes. * diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 0018934c9..0fdea99f2 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -2636,8 +2636,10 @@ interface SanitizerConfig { comments?: boolean; dataAttributes?: boolean; elements?: SanitizerElementWithAttributes[]; + processingInstructions?: SanitizerPI[]; removeAttributes?: SanitizerAttribute[]; removeElements?: SanitizerElement[]; + removeProcessingInstructions?: SanitizerPI[]; replaceWithChildrenElements?: SanitizerElement[]; } @@ -2651,6 +2653,10 @@ interface SanitizerElementNamespaceWithAttributes extends SanitizerElementNamesp removeAttributes?: SanitizerAttribute[]; } +interface SanitizerProcessingInstruction { + target: string; +} + interface SchedulerPostTaskOptions { delay?: number; priority?: TaskPriority; @@ -5702,9 +5708,29 @@ declare var CSSLayerStatementRule: { new(): CSSLayerStatementRule; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -9296,7 +9322,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { */ vectorEffect: string; /** - * The vertical-align CSS property sets vertical alignment of an inline, inline-block or table-cell box. + * The vertical-align CSS shorthand property sets the vertical alignment of an inline, inline-block, or table-cell box. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/vertical-align) */ @@ -10101,13 +10127,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -10491,7 +10517,7 @@ interface CanvasRect { */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** - * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. It might be null if there is no associated element. + * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ @@ -11212,6 +11238,12 @@ interface Credential { declare var Credential: { prototype: Credential; new(): Credential; + /** + * The **`isConditionalMediationAvailable()`** static method of the Credential interface returns a Promise which resolves to false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/isConditionalMediationAvailable_static) + */ + isConditionalMediationAvailable(): Promise; }; /** @@ -11501,7 +11533,7 @@ declare var DOMException: { */ interface DOMImplementation { /** - * The **`DOMImplementation.createDocument()`** method creates and returns an XMLDocument. + * The **`createDocument()`** method of the DOMImplementation interface creates and returns an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ @@ -12997,13 +13029,13 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ close(): void; /** - * The **`Document.createAttribute()`** method creates a new attribute node, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttribute()`** method of the Document interface creates a new attribute node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** - * The **`Document.createAttributeNS()`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttributeNS()`** method of the Document interface creates a new attribute node with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ @@ -13027,7 +13059,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ createDocumentFragment(): DocumentFragment; /** - * In an HTML document, the **`document.createElement()`** method creates the HTML element specified by localName, or an HTMLUnknownElement if localName isn't recognized. + * The **`createElement()`** method of the Document interface creates a new HTMLElement that has the specified localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) */ @@ -13036,7 +13068,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** - * Creates an element with the specified namespace URI and qualified name. + * The **`createElementNS()`** method of the Document interface creates a new element with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ @@ -14009,7 +14041,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp */ setPointerCapture(pointerId: number): void; /** - * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute (removing it if it is present and adding it if it is not present) on the given element. + * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute on the given element, removing it if present and adding it if not present. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) */ @@ -14311,7 +14343,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -18526,7 +18558,7 @@ interface HTMLIFrameElement extends HTMLElement { */ height: string; /** - * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed. + * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the browser indicating whether the iframe should be loaded immediately on page load, or only when it is needed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */ @@ -18669,7 +18701,7 @@ interface HTMLImageElement extends HTMLElement { */ isMap: boolean; /** - * The **`loading`** property of the HTMLImageElement interface provides a hint to the user agent on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. + * The **`loading`** property of the HTMLImageElement interface provides a hint to the browser on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading) */ @@ -18709,7 +18741,7 @@ interface HTMLImageElement extends HTMLElement { */ referrerPolicy: string; /** - * The **`sizes`** property of the HTMLImageElement interface allows you to specify the layout width of the image for each of a list of media queries. This provides the ability to automatically select among different images—even images of different orientations or aspect ratios—as the document state changes to match different media conditions. It reflects the element's sizes content attribute. + * The **`sizes`** property of the HTMLImageElement interface allows you to specify the layout width of the image for each of a list of media queries, or auto for lazy-loaded images to allow the browser to automatically select an image to display based on the layout size of the element. This allows the browser to choose between different images specified in the element srcset to match different media conditions — even images with different orientations or aspect ratios. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes) */ @@ -21917,7 +21949,7 @@ declare var Headers: { }; /** - * The **`Highlight`** interface of the CSS Custom Highlight API is used to represent a collection of Range instances to be styled using the API. + * The **`Highlight`** interface of the CSS Custom Highlight API is used to represent a collection of AbstractRange instances to be styled using the API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */ @@ -25878,7 +25910,7 @@ declare var NavigationPreloadManager: { }; /** - * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation, that is, a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. + * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation — a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition) */ @@ -26906,7 +26938,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -26937,6 +26969,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`OscillatorNode`** interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. * @@ -27061,7 +27105,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28043,6 +28089,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -29306,7 +29358,7 @@ interface RTCEncodedVideoFrame { */ readonly timestamp: number; /** - * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame. + * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame or a delta frame. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ @@ -34729,7 +34781,11 @@ declare var SVGViewElement: { new(): SVGViewElement; }; -/** The **`Sanitizer`** interface of the HTML Sanitizer API defines a configuration object that specifies what elements, attributes and comments are allowed or should be removed when inserting strings of HTML into an Element or ShadowRoot, or when parsing an HTML string into a Document. */ +/** + * The **`Sanitizer`** interface of the HTML Sanitizer API defines a configuration object that specifies what elements, attributes and comments are allowed or should be removed when inserting strings of HTML into an Element or ShadowRoot, or when parsing an HTML string into a Document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Sanitizer) + */ interface Sanitizer { /** * The **`allowAttribute()`** method of the Sanitizer interface sets an attribute to be allowed on all elements when the sanitizer is used. @@ -34993,7 +35049,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -38623,13 +38679,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ @@ -41418,7 +41474,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -42587,6 +42643,7 @@ declare namespace CSS { function Hz(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function Q(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function cap(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ch(value: number): CSSUnitValue; @@ -42638,9 +42695,11 @@ declare namespace CSS { function fr(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function grad(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ic(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function kHz(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lh(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function lvb(value: number): CSSUnitValue; @@ -42670,7 +42729,9 @@ declare namespace CSS { function px(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rad(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rcap(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rch(value: number): CSSUnitValue; /** * The **`CSS.registerProperty()`** static method registers custom properties, allowing for property type checking, default values, and properties that do or do not inherit their value. @@ -42680,8 +42741,11 @@ declare namespace CSS { function registerProperty(definition: PropertyDefinition): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rem(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rex(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function ric(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function rlh(value: number): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ function s(value: number): CSSUnitValue; @@ -43603,7 +43667,7 @@ declare var closed: boolean; */ declare var cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -44457,6 +44521,7 @@ type RequestInfo = Request | string; type SanitizerAttribute = string | SanitizerAttributeNamespace; type SanitizerElement = string | SanitizerElementNamespace; type SanitizerElementWithAttributes = string | SanitizerElementNamespaceWithAttributes; +type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 50244ec1c..62c762e9c 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -1557,9 +1557,29 @@ declare var CSSKeywordValue: { new(value: string): CSSKeywordValue; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -2070,13 +2090,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -3733,7 +3753,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -7233,7 +7253,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -7264,6 +7284,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7545,6 +7577,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8487,7 +8525,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -9781,13 +9819,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index d5a2a026a..8e7ca8456 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -1493,9 +1493,29 @@ declare var CSSKeywordValue: { new(value: string): CSSKeywordValue; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -2006,13 +2026,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -3514,7 +3534,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -6891,7 +6911,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -6922,6 +6942,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7203,6 +7235,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8070,7 +8108,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -9324,13 +9362,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index f0a28d915..557203852 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -2036,9 +2036,29 @@ declare var CSSKeywordValue: { new(value: string): CSSKeywordValue; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -2549,13 +2569,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -4342,7 +4362,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -8107,7 +8127,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -8138,6 +8158,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -8419,6 +8451,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -9064,7 +9102,7 @@ interface RTCEncodedVideoFrame { */ readonly timestamp: number; /** - * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame. + * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame or a delta frame. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ @@ -9610,7 +9648,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -11236,13 +11274,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index de8f3e40f..d79565cb3 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -2039,9 +2039,29 @@ declare var CSSKeywordValue: { new(value: string): CSSKeywordValue; }; +/** + * The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp) + */ interface CSSMathClamp extends CSSMathValue { + /** + * The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower) + */ readonly lower: CSSNumericValue; + /** + * The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper) + */ readonly upper: CSSNumericValue; + /** + * The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value) + */ readonly value: CSSNumericValue; } @@ -2552,13 +2572,13 @@ declare var CSSTranslate: { }; /** - * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue. + * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** - * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. + * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ @@ -4345,7 +4365,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -8110,7 +8130,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -8141,6 +8161,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -8422,6 +8454,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -9067,7 +9105,7 @@ interface RTCEncodedVideoFrame { */ readonly timestamp: number; /** - * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame. + * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame or a delta frame. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ @@ -9613,7 +9651,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -11239,13 +11277,13 @@ interface WEBGL_draw_buffers { */ interface WEBGL_lose_context { /** - * The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context. + * The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ loseContext(): void; /** - * The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object. + * The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ diff --git a/inputfiles/mdn.json b/inputfiles/mdn.json index cc3b5d2ef..6ed29ec9c 100644 --- a/inputfiles/mdn.json +++ b/inputfiles/mdn.json @@ -2427,7 +2427,7 @@ { "mdn_url": "/en-US/docs/Web/API/CanvasRenderingContext2D/canvas", "pageType": "web-api-instance-property", - "summary": "The CanvasRenderingContext2D.canvas property, part of the\nCanvas API, is a read-only reference to the\nHTMLCanvasElement object that is associated with a given context. It\nmight be null if there is no associated element." + "summary": "The CanvasRenderingContext2D.canvas property, part of the\nCanvas API, is a read-only reference to the\nHTMLCanvasElement object that is associated with a given context." }, { "mdn_url": "/en-US/docs/Web/API/CanvasRenderingContext2D/clearRect", @@ -3674,6 +3674,31 @@ "pageType": "web-api-instance-method", "summary": "The size() method of the\nCountQueuingStrategy interface always returns 1, so that the\ntotal queue size is a count of the number of chunks in the queue." }, + { + "mdn_url": "/en-US/docs/Web/API/CrashReport", + "pageType": "web-api-interface", + "summary": "The CrashReport dictionary of the Reporting API represents a crash report." + }, + { + "mdn_url": "/en-US/docs/Web/API/CrashReportContext", + "pageType": "web-api-interface", + "summary": "The CrashReportContext interface of the Reporting API provides methods enabling arbitrary data to be recorded for the current top-level browsing context, which is then added to a CrashReport and sent to a reporting endpoint when a browser crash occurs." + }, + { + "mdn_url": "/en-US/docs/Web/API/CrashReportContext/delete", + "pageType": "web-api-instance-method", + "summary": "The delete() method of the CrashReportContext interface deletes a previously-stored key-value pair." + }, + { + "mdn_url": "/en-US/docs/Web/API/CrashReportContext/initialize", + "pageType": "web-api-instance-method", + "summary": "The initialize() method of the CrashReportContext interface initializes a portion of memory to be used for storing crash report data specified by set(). This must be called before any other method is invoked on the object." + }, + { + "mdn_url": "/en-US/docs/Web/API/CrashReportContext/set", + "pageType": "web-api-instance-method", + "summary": "The set() method of the CrashReportContext interface stores a key-value pair in the memory initialized by initialize()." + }, { "mdn_url": "/en-US/docs/Web/API/CreateMonitor", "pageType": "web-api-interface", @@ -3800,69 +3825,64 @@ "summary": "The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for an asymmetric cryptography algorithm, also known as a public-key algorithm." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport", "pageType": "web-api-interface", - "summary": "The CSPViolationReportBody interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report." + "summary": "The CSPViolationReport dictionary of the Reporting API represents a report that is generated when a document violates its Content Security Policy (CSP)." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/blockedURL", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/blockedURL", "pageType": "web-api-instance-property", - "summary": "The blockedURL read-only property of the CSPViolationReportBody interface is a string value that represents the resource that was blocked because it violates a Content Security Policy (CSP)." + "summary": "The blockedURL property of the CSPViolationReport dictionary is a string value that represents the resource that was blocked because it violates a Content Security Policy (CSP)." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/columnNumber", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/columnNumber", "pageType": "web-api-instance-property", - "summary": "The columnNumber read-only property of the CSPViolationReportBody interface indicates the column number in the source file that triggered the Content Security Policy (CSP) violation." + "summary": "The columnNumber property of the CSPViolationReport dictionary indicates the character position in the source file line that triggered the Content Security Policy (CSP) violation." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/disposition", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/disposition", "pageType": "web-api-instance-property", - "summary": "The disposition read-only property of the CSPViolationReportBody interface indicates whether the user agent is configured to enforce Content Security Policy (CSP) violations or only report them." + "summary": "The disposition property of the CSPViolationReport dictionary indicates whether the user agent is configured to enforce Content Security Policy (CSP) violations or only report them." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/documentURL", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/documentURL", "pageType": "web-api-instance-property", - "summary": "The documentURL read-only property of the CSPViolationReportBody interface is a string that represents the URL of the document or worker that violated the Content Security Policy (CSP)." + "summary": "The documentURL property of the CSPViolationReport dictionary is a string that represents the URL of the document or worker that violated the Content Security Policy (CSP)." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/effectiveDirective", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/effectiveDirective", "pageType": "web-api-instance-property", - "summary": "The effectiveDirective read-only property of the CSPViolationReportBody interface is a string that represents the effective Content Security Policy (CSP) directive that was violated." + "summary": "The effectiveDirective property of the CSPViolationReport dictionary is a string that represents the effective Content Security Policy (CSP) directive that was violated." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/lineNumber", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/lineNumber", "pageType": "web-api-instance-property", - "summary": "The lineNumber read-only property of the CSPViolationReportBody interface indicates the line number in the source file that triggered the Content Security Policy (CSP) violation." + "summary": "The lineNumber property of the CSPViolationReport dictionary indicates the line number in the source file where the Content Security Policy (CSP) violation was triggered." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/originalPolicy", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/originalPolicy", "pageType": "web-api-instance-property", - "summary": "The originalPolicy read-only property of the CSPViolationReportBody interface is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation." + "summary": "The originalPolicy property of the CSPViolationReport dictionary is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/referrer", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/referrer", "pageType": "web-api-instance-property", - "summary": "The referrer read-only property of the CSPViolationReportBody interface is a string that represents the URL of the referring page of the resource who's Content Security Policy (CSP) was violated." + "summary": "The referrer property of the CSPViolationReport dictionary is a string that represents the URL of the referring page of the resource who's Content Security Policy (CSP) was violated." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/sample", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/sample", "pageType": "web-api-instance-property", - "summary": "The sample read-only property of the CSPViolationReportBody interface is a string that contains a part of the resource that violated the Content Security Policy (CSP)." + "summary": "The sample property of the CSPViolationReport dictionary is a string that contains a part of the resource that violated the Content Security Policy (CSP)." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/sourceFile", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/sourceFile", "pageType": "web-api-instance-property", - "summary": "The sourceFile read-only property of the CSPViolationReportBody interface indicates the URL of the source file that violated the Content Security Policy (CSP)." + "summary": "The sourceFile property of the CSPViolationReport dictionary indicates the URL of the source file that violated the Content Security Policy (CSP)." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/statusCode", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/statusCode", "pageType": "web-api-instance-property", - "summary": "The statusCode read-only property of the CSPViolationReportBody interface is a number representing the HTTP status code of the response to the request that triggered a Content Security Policy (CSP) violation (when loading a window or worker)." - }, - { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/toJSON", - "pageType": "web-api-instance-method", - "summary": "The toJSON() method of the CSPViolationReportBody interface is a serializer, which returns a JSON representation of the CSPViolationReportBody object." + "summary": "The statusCode property of the CSPViolationReport dictionary is a number representing the HTTP status code of the response to the request that triggered a Content Security Policy (CSP) violation (when loading a window or worker)." }, { "mdn_url": "/en-US/docs/Web/API/CSS", @@ -4389,6 +4409,31 @@ "pageType": "web-api-instance-property", "summary": "The read-only nameList property of the CSSLayerStatementRule interface return the list of associated cascade layer names. The names can't be modified." }, + { + "mdn_url": "/en-US/docs/Web/API/CSSMathClamp", + "pageType": "web-api-interface", + "summary": "The CSSMathClamp interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue." + }, + { + "mdn_url": "/en-US/docs/Web/API/CSSMathClamp/CSSMathClamp", + "pageType": "web-api-constructor", + "summary": "The CSSMathClamp() constructor creates a\nnew CSSMathClamp object representing a CSS clamp() function." + }, + { + "mdn_url": "/en-US/docs/Web/API/CSSMathClamp/lower", + "pageType": "web-api-instance-property", + "summary": "The lower read-only property of the\nCSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object." + }, + { + "mdn_url": "/en-US/docs/Web/API/CSSMathClamp/upper", + "pageType": "web-api-instance-property", + "summary": "The upper read-only property of the\nCSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object." + }, + { + "mdn_url": "/en-US/docs/Web/API/CSSMathClamp/value", + "pageType": "web-api-instance-property", + "summary": "The value read-only property of the\nCSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object." + }, { "mdn_url": "/en-US/docs/Web/API/CSSMathInvert", "pageType": "web-api-interface", @@ -4597,7 +4642,7 @@ { "mdn_url": "/en-US/docs/Web/API/CSSNumericValue/to", "pageType": "web-api-instance-method", - "summary": "The to() method of the\nCSSNumericValue interface converts a numeric value from one unit to\nanother." + "summary": "The to() method of the CSSNumericValue interface converts a numeric value from one unit to another." }, { "mdn_url": "/en-US/docs/Web/API/CSSNumericValue/toSum", @@ -5207,7 +5252,7 @@ { "mdn_url": "/en-US/docs/Web/API/CSSUnitValue", "pageType": "web-api-interface", - "summary": "The CSSUnitValue interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, \"42px\" would be represented by a CSSNumericValue." + "summary": "The CSSUnitValue interface of the CSS Typed Object Model API represents values that contain a single unit type." }, { "mdn_url": "/en-US/docs/Web/API/CSSUnitValue/CSSUnitValue", @@ -5217,7 +5262,7 @@ { "mdn_url": "/en-US/docs/Web/API/CSSUnitValue/unit", "pageType": "web-api-instance-property", - "summary": "The CSSUnitValue.unit read-only property\nof the CSSUnitValue interface returns a string\nindicating the type of unit." + "summary": "The CSSUnitValue.unit read-only property\nof the CSSUnitValue interface returns a string\nindicating the unit type." }, { "mdn_url": "/en-US/docs/Web/API/CSSUnitValue/value", @@ -5362,7 +5407,7 @@ { "mdn_url": "/en-US/docs/Web/API/CustomElementRegistry/whenDefined", "pageType": "web-api-instance-method", - "summary": "The whenDefined() method of the\nCustomElementRegistry interface returns a Promise that\nresolves when the named element is defined." + "summary": "The whenDefined() method of the CustomElementRegistry interface returns a Promise that resolves when the named element is defined." }, { "mdn_url": "/en-US/docs/Web/API/CustomEvent", @@ -5680,44 +5725,9 @@ "summary": "The updateInkTrailStartPoint() method of the DelegatedInkTrailPresenter interface indicates which PointerEvent was used as the last rendering point for the current frame, allowing the OS-level compositor to render a delegated ink trail ahead of the next pointer event being dispatched." }, { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody", + "mdn_url": "/en-US/docs/Web/API/DeprecationReport", "pageType": "web-api-interface", - "summary": "The DeprecationReportBody interface of the Reporting API represents the body of a deprecation report." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/anticipatedRemoval", - "pageType": "web-api-instance-property", - "summary": "The anticipatedRemoval read-only property of the DeprecationReportBody interface returns the date that the browser version which removes the feature will ship. This value can be used to prioritize warnings. If this property returns null because the date is unknown, then the deprecation should be considered low priority." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/columnNumber", - "pageType": "web-api-instance-property", - "summary": "The columnNumber read-only property of the DeprecationReportBody interface returns the line in the source file in which the deprecated feature was used." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/id", - "pageType": "web-api-instance-property", - "summary": "The id read-only property of the DeprecationReportBody interface returns a string representing the feature or API that is deprecated. This can be used to group or count related reports." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/lineNumber", - "pageType": "web-api-instance-property", - "summary": "The lineNumber read-only property of the DeprecationReportBody interface returns the line in the source file in which the deprecated feature was used." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/message", - "pageType": "web-api-instance-property", - "summary": "The message read-only property of the DeprecationReportBody interface returns a human-readable description of the deprecation. This typically matches the message a browser will display in its DevTools console regarding a deprecated feature." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/sourceFile", - "pageType": "web-api-instance-property", - "summary": "The sourceFile read-only property of the DeprecationReportBody interface returns the path to the source file where the deprecated feature was used." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/toJSON", - "pageType": "web-api-instance-method", - "summary": "The toJSON() method of the DeprecationReportBody interface is a serializer, and returns a JSON representation of the InterventionReportBody object." + "summary": "The DeprecationReport dictionary of the Reporting API represents a deprecation report." }, { "mdn_url": "/en-US/docs/Web/API/Device_Memory_API", @@ -5982,7 +5992,7 @@ { "mdn_url": "/en-US/docs/Web/API/Document/ariaNotify", "pageType": "web-api-instance-method", - "summary": "The ariaNotify() method of the Document interface specifies that a given string of text should be announced by a screen reader if available and activated." + "summary": "The ariaNotify() method of the Document interface queues a string of text to be announced by a screen reader." }, { "mdn_url": "/en-US/docs/Web/API/Document/beforescriptexecute_event", @@ -6012,7 +6022,7 @@ { "mdn_url": "/en-US/docs/Web/API/Document/caretRangeFromPoint", "pageType": "web-api-instance-method", - "summary": "The caretRangeFromPoint() method of the\nDocument interface returns a Range object for the document\nfragment under the specified coordinates." + "summary": "The caretRangeFromPoint() method of the Document interface returns a Range object for the document fragment under the specified coordinates." }, { "mdn_url": "/en-US/docs/Web/API/Document/characterSet", @@ -6057,12 +6067,12 @@ { "mdn_url": "/en-US/docs/Web/API/Document/createAttribute", "pageType": "web-api-instance-method", - "summary": "The Document.createAttribute() method creates a new\nattribute node, and returns it. The object created is a node implementing the\nAttr interface. The DOM does not enforce what sort of attributes can be\nadded to a particular element in this manner." + "summary": "The createAttribute() method of the Document interface creates a new attribute node." }, { "mdn_url": "/en-US/docs/Web/API/Document/createAttributeNS", "pageType": "web-api-instance-method", - "summary": "The Document.createAttributeNS() method creates a new attribute node\nwith the specified namespace URI and qualified name, and returns it.\nThe object created is a node implementing the\nAttr interface. The DOM does not enforce what sort of attributes can be\nadded to a particular element in this manner." + "summary": "The createAttributeNS() method of the Document interface creates a new attribute node with the specified namespace URI and qualified name." }, { "mdn_url": "/en-US/docs/Web/API/Document/createCDATASection", @@ -6082,12 +6092,12 @@ { "mdn_url": "/en-US/docs/Web/API/Document/createElement", "pageType": "web-api-instance-method", - "summary": "In an HTML document, the document.createElement() method creates the HTML element specified by localName, or an HTMLUnknownElement if localName isn't recognized." + "summary": "The createElement() method of the Document interface creates a new HTMLElement that has the specified localName." }, { "mdn_url": "/en-US/docs/Web/API/Document/createElementNS", "pageType": "web-api-instance-method", - "summary": "Creates an element with the specified namespace URI and qualified name." + "summary": "The createElementNS() method of the Document interface creates a new element with the specified namespace URI and qualified name." }, { "mdn_url": "/en-US/docs/Web/API/Document/createEvent", @@ -6852,7 +6862,7 @@ { "mdn_url": "/en-US/docs/Web/API/DOMImplementation/createDocument", "pageType": "web-api-instance-method", - "summary": "The DOMImplementation.createDocument() method creates and\nreturns an XMLDocument." + "summary": "The createDocument() method of the DOMImplementation interface creates and returns an XMLDocument." }, { "mdn_url": "/en-US/docs/Web/API/DOMImplementation/createDocumentType", @@ -7807,7 +7817,7 @@ { "mdn_url": "/en-US/docs/Web/API/Element/ariaNotify", "pageType": "web-api-instance-method", - "summary": "The ariaNotify() method of the Element interface specifies that a given string of text should be announced by a screen reader if available and activated." + "summary": "The ariaNotify() method of the Element interface queues a string of text to be announced by a screen reader." }, { "mdn_url": "/en-US/docs/Web/API/Element/ariaOrientation", @@ -8612,7 +8622,7 @@ { "mdn_url": "/en-US/docs/Web/API/Element/toggleAttribute", "pageType": "web-api-instance-method", - "summary": "The toggleAttribute() method of the\nElement interface toggles a Boolean attribute (removing it if it is\npresent and adding it if it is not present) on the given element." + "summary": "The toggleAttribute() method of the Element interface toggles a Boolean attribute on the given element, removing it if present and adding it if not present." }, { "mdn_url": "/en-US/docs/Web/API/Element/touchcancel_event", @@ -9182,7 +9192,7 @@ { "mdn_url": "/en-US/docs/Web/API/Event/isTrusted", "pageType": "web-api-instance-property", - "summary": "The isTrusted read-only property of the\nEvent interface is a boolean value that is true\nwhen the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()),\nand false when the event was dispatched via\nEventTarget.dispatchEvent().\nThe only exception is the click event, which initializes the isTrusted\nproperty to false in user agents." + "summary": "The isTrusted read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false." }, { "mdn_url": "/en-US/docs/Web/API/Event/originalTarget", @@ -12032,42 +12042,42 @@ { "mdn_url": "/en-US/docs/Web/API/Highlight", "pageType": "web-api-interface", - "summary": "The Highlight interface of the CSS Custom Highlight API is used to represent a collection of Range instances to be styled using the API." + "summary": "The Highlight interface of the CSS Custom Highlight API is used to represent a collection of AbstractRange instances to be styled using the API." }, { "mdn_url": "/en-US/docs/Web/API/Highlight/add", "pageType": "web-api-instance-method", - "summary": "The add() method of the Highlight interface adds a new Range object to a highlight, to be styled using the CSS Custom Highlight API." + "summary": "The add() method of the Highlight interface adds a new AbstractRange object to a highlight, to be styled using the CSS Custom Highlight API." }, { "mdn_url": "/en-US/docs/Web/API/Highlight/clear", "pageType": "web-api-instance-method", - "summary": "The clear() method of the Highlight interface removes all the Range objects from a Highlight object." + "summary": "The clear() method of the Highlight interface removes all the AbstractRange objects from a Highlight object." }, { "mdn_url": "/en-US/docs/Web/API/Highlight/delete", "pageType": "web-api-instance-method", - "summary": "The delete() method of the Highlight interface removes a specified Range object from a Highlight object." + "summary": "The delete() method of the Highlight interface removes a specified AbstractRange object from a Highlight object." }, { "mdn_url": "/en-US/docs/Web/API/Highlight/entries", "pageType": "web-api-instance-method", - "summary": "The entries() method of the Highlight interface returns a new Iterator object that contains an array of [range, range] for each Range object in the Highlight object, in insertion order." + "summary": "The entries() method of the Highlight interface returns a new Iterator object that contains an array of [range, range] for each AbstractRange object in the Highlight object, in insertion order." }, { "mdn_url": "/en-US/docs/Web/API/Highlight/forEach", "pageType": "web-api-instance-method", - "summary": "The forEach() method of the Highlight interface executes a provided function once for each Range object in the Highlight object, in insertion order." + "summary": "The forEach() method of the Highlight interface executes a provided function once for each AbstractRange object in the Highlight object, in insertion order." }, { "mdn_url": "/en-US/docs/Web/API/Highlight/has", "pageType": "web-api-instance-method", - "summary": "The has() method of the Highlight interface returns a boolean indicating whether a Range object exists in a Highlight object or not." + "summary": "The has() method of the Highlight interface returns a boolean indicating whether an AbstractRange object exists in a Highlight object or not." }, { "mdn_url": "/en-US/docs/Web/API/Highlight/Highlight", "pageType": "web-api-constructor", - "summary": "The Highlight() constructor returns a newly created\nHighlight object which can hold a collection of Range objects to be styled using the CSS Custom Highlight API." + "summary": "The Highlight() constructor returns a newly created\nHighlight object which can hold a collection of AbstractRange objects to be styled using the CSS Custom Highlight API." }, { "mdn_url": "/en-US/docs/Web/API/Highlight/keys", @@ -12082,7 +12092,7 @@ { "mdn_url": "/en-US/docs/Web/API/Highlight/size", "pageType": "web-api-instance-property", - "summary": "The size property returns the number of Range objects in a\nHighlight object." + "summary": "The size property returns the number of AbstractRange objects in a\nHighlight object." }, { "mdn_url": "/en-US/docs/Web/API/Highlight/type", @@ -12092,7 +12102,7 @@ { "mdn_url": "/en-US/docs/Web/API/Highlight/values", "pageType": "web-api-instance-method", - "summary": "The values() method of the Highlight interface returns a new Iterator object that contains the values for each Range object in the Highlight object in insertion order." + "summary": "The values() method of the Highlight interface returns a new Iterator object that contains the values for each AbstractRange object in the Highlight object in insertion order." }, { "mdn_url": "/en-US/docs/Web/API/HighlightRegistry", @@ -12324,6 +12334,11 @@ "pageType": "web-api-interface", "summary": "The HTMLAnchorElement interface represents hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. This interface corresponds to element; not to be confused with , which is represented by HTMLLinkElement." }, + { + "mdn_url": "/en-US/docs/Web/API/HTMLAnchorElement/attributionSourceId", + "pageType": "web-api-instance-property", + "summary": "The attributionSourceId property of the HTMLAnchorElement interface gets and sets the attributionsourceid HTML attribute on an element." + }, { "mdn_url": "/en-US/docs/Web/API/HTMLAnchorElement/attributionSrc", "pageType": "web-api-instance-property", @@ -13602,7 +13617,7 @@ { "mdn_url": "/en-US/docs/Web/API/HTMLIFrameElement/loading", "pageType": "web-api-instance-property", - "summary": "The loading property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed." + "summary": "The loading property of the HTMLIFrameElement interface is a string that provides a hint to the browser indicating whether the iframe should be loaded immediately on page load, or only when it is needed." }, { "mdn_url": "/en-US/docs/Web/API/HTMLIFrameElement/name", @@ -13717,7 +13732,7 @@ { "mdn_url": "/en-US/docs/Web/API/HTMLImageElement/loading", "pageType": "web-api-instance-property", - "summary": "The loading property of the HTMLImageElement interface provides a hint to the user agent on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute." + "summary": "The loading property of the HTMLImageElement interface provides a hint to the browser on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute." }, { "mdn_url": "/en-US/docs/Web/API/HTMLImageElement/longDesc", @@ -13747,7 +13762,7 @@ { "mdn_url": "/en-US/docs/Web/API/HTMLImageElement/sizes", "pageType": "web-api-instance-property", - "summary": "The sizes property of the HTMLImageElement interface allows you to specify the layout width of the image for each of a list of media queries. This provides the ability to automatically select among different images—even images of different orientations or aspect ratios—as the document state changes to match different media conditions. It reflects the element's sizes content attribute." + "summary": "The sizes property of the HTMLImageElement interface allows you to specify the layout width of the image for each of a list of media queries, or auto for lazy-loaded images to allow the browser to automatically select an image to display based on the layout size of the element.\nThis allows the browser to choose between different images specified in the element srcset to match different media conditions — even images with different orientations or aspect ratios." }, { "mdn_url": "/en-US/docs/Web/API/HTMLImageElement/src", @@ -14399,6 +14414,11 @@ "pageType": "web-api-instance-method", "summary": "The HTMLMediaElement.fastSeek() method quickly seeks the\nmedia to the new time with precision tradeoff." }, + { + "mdn_url": "/en-US/docs/Web/API/HTMLMediaElement/getStartDate", + "pageType": "web-api-instance-method", + "summary": "The getStartDate() method of the HTMLMediaElement interface returns a new Date object representing the real-world date and time corresponding to the beginning of the media." + }, { "mdn_url": "/en-US/docs/Web/API/HTMLMediaElement/load", "pageType": "web-api-instance-method", @@ -14414,6 +14434,11 @@ "pageType": "web-api-event", "summary": "The loadedmetadata event is fired when the metadata has been loaded." }, + { + "mdn_url": "/en-US/docs/Web/API/HTMLMediaElement/loading", + "pageType": "web-api-instance-property", + "summary": "The loading property of the HTMLMediaElement interface provides a hint to the browser on how to handle the loading of the media which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the media until it's expected to be needed, rather than immediately during the initial page load. It reflects the