Skip to content

Commit 18b224c

Browse files
authored
Co-authored-by: saschanaz <[email protected]>
1 parent d056787 commit 18b224c

12 files changed

+378
-275
lines changed

baselines/dom.generated.d.ts

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,11 @@ interface ImageDataSettings {
612612
colorSpace?: PredefinedColorSpace;
613613
}
614614

615+
interface ImageEncodeOptions {
616+
quality?: number;
617+
type?: string;
618+
}
619+
615620
interface ImportMeta {
616621
url: string;
617622
}
@@ -2205,7 +2210,7 @@ declare var AnimationPlaybackEvent: {
22052210
};
22062211

22072212
interface AnimationTimeline {
2208-
readonly currentTime: CSSNumberish | null;
2213+
readonly currentTime: number | null;
22092214
}
22102215

22112216
declare var AnimationTimeline: {
@@ -4641,6 +4646,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
46414646
createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
46424647
createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
46434648
createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
4649+
createElementNS<K extends keyof MathMLElementTagNameMap>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K];
4650+
createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement;
46444651
createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
46454652
createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
46464653
createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
@@ -4758,6 +4765,9 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
47584765
*/
47594766
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
47604767
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
4768+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
4769+
/** @deprecated */
4770+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
47614771
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
47624772
/**
47634773
* If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
@@ -4770,6 +4780,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
47704780
*/
47714781
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
47724782
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
4783+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
47734784
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
47744785
/** Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */
47754786
getSelection(): Selection | null;
@@ -5053,6 +5064,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
50535064
/** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */
50545065
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
50555066
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
5067+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
50565068
closest<E extends Element = Element>(selectors: string): E | null;
50575069
/** Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */
50585070
getAttribute(qualifiedName: string): string | null;
@@ -5068,9 +5080,13 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
50685080
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
50695081
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
50705082
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
5083+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
5084+
/** @deprecated */
5085+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
50715086
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
50725087
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
50735088
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
5089+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
50745090
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
50755091
/** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. */
50765092
hasAttribute(qualifiedName: string): boolean;
@@ -10529,6 +10545,12 @@ interface OffscreenCanvas extends EventTarget {
1052910545
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
1053010546
*/
1053110547
width: number;
10548+
/**
10549+
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
10550+
*
10551+
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
10552+
*/
10553+
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
1053210554
/**
1053310555
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
1053410556
*
@@ -10658,10 +10680,16 @@ interface ParentNode extends Node {
1065810680
/** Returns the first element that is a descendant of node that matches selectors. */
1065910681
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
1066010682
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
10683+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
10684+
/** @deprecated */
10685+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
1066110686
querySelector<E extends Element = Element>(selectors: string): E | null;
1066210687
/** Returns all element descendants of node that match selectors. */
1066310688
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
1066410689
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
10690+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
10691+
/** @deprecated */
10692+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
1066510693
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
1066610694
/**
1066710695
* Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
@@ -17967,6 +17995,39 @@ interface SVGElementTagNameMap {
1796717995
"view": SVGViewElement;
1796817996
}
1796917997

17998+
interface MathMLElementTagNameMap {
17999+
"annotation": MathMLElement;
18000+
"annotation-xml": MathMLElement;
18001+
"maction": MathMLElement;
18002+
"math": MathMLElement;
18003+
"merror": MathMLElement;
18004+
"mfrac": MathMLElement;
18005+
"mi": MathMLElement;
18006+
"mmultiscripts": MathMLElement;
18007+
"mn": MathMLElement;
18008+
"mo": MathMLElement;
18009+
"mover": MathMLElement;
18010+
"mpadded": MathMLElement;
18011+
"mphantom": MathMLElement;
18012+
"mprescripts": MathMLElement;
18013+
"mroot": MathMLElement;
18014+
"mrow": MathMLElement;
18015+
"ms": MathMLElement;
18016+
"mspace": MathMLElement;
18017+
"msqrt": MathMLElement;
18018+
"mstyle": MathMLElement;
18019+
"msub": MathMLElement;
18020+
"msubsup": MathMLElement;
18021+
"msup": MathMLElement;
18022+
"mtable": MathMLElement;
18023+
"mtd": MathMLElement;
18024+
"mtext": MathMLElement;
18025+
"mtr": MathMLElement;
18026+
"munder": MathMLElement;
18027+
"munderover": MathMLElement;
18028+
"semantics": MathMLElement;
18029+
}
18030+
1797018031
/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
1797118032
type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;
1797218033

baselines/serviceworker.generated.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,11 @@ interface ImageDataSettings {
280280
colorSpace?: PredefinedColorSpace;
281281
}
282282

283+
interface ImageEncodeOptions {
284+
quality?: number;
285+
type?: string;
286+
}
287+
283288
interface ImportMeta {
284289
url: string;
285290
}
@@ -2494,6 +2499,12 @@ interface OffscreenCanvas extends EventTarget {
24942499
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
24952500
*/
24962501
width: number;
2502+
/**
2503+
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
2504+
*
2505+
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
2506+
*/
2507+
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
24972508
/**
24982509
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
24992510
*

baselines/sharedworker.generated.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ interface ImageDataSettings {
255255
colorSpace?: PredefinedColorSpace;
256256
}
257257

258+
interface ImageEncodeOptions {
259+
quality?: number;
260+
type?: string;
261+
}
262+
258263
interface ImportMeta {
259264
url: string;
260265
}
@@ -2402,6 +2407,12 @@ interface OffscreenCanvas extends EventTarget {
24022407
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
24032408
*/
24042409
width: number;
2410+
/**
2411+
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
2412+
*
2413+
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
2414+
*/
2415+
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
24052416
/**
24062417
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
24072418
*

baselines/webworker.generated.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,11 @@ interface ImageDataSettings {
284284
colorSpace?: PredefinedColorSpace;
285285
}
286286

287+
interface ImageEncodeOptions {
288+
quality?: number;
289+
type?: string;
290+
}
291+
287292
interface ImportMeta {
288293
url: string;
289294
}
@@ -2589,6 +2594,12 @@ interface OffscreenCanvas extends EventTarget {
25892594
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
25902595
*/
25912596
width: number;
2597+
/**
2598+
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
2599+
*
2600+
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
2601+
*/
2602+
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
25922603
/**
25932604
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
25942605
*

inputfiles/addedTypes.jsonc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,8 @@
601601
"closest": {
602602
"additionalSignatures": [
603603
"closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null",
604-
"closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null"
604+
"closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null",
605+
"closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null"
605606
],
606607
"signature": {
607608
"0": {
@@ -715,6 +716,8 @@
715716
"createElementNS(namespaceURI: \"http://www.w3.org/1999/xhtml\", qualifiedName: string): HTMLElement",
716717
"createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: K): SVGElementTagNameMap[K]",
717718
"createElementNS(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: string): SVGElement",
719+
"createElementNS<K extends keyof MathMLElementTagNameMap>(namespaceURI: \"http://www.w3.org/1998/Math/MathML\", qualifiedName: K): MathMLElementTagNameMap[K]",
720+
"createElementNS(namespaceURI: \"http://www.w3.org/1998/Math/MathML\", qualifiedName: string): MathMLElement",
718721
"createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element"
719722
]
720723
},

inputfiles/overridingTypes.jsonc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,8 @@
641641
"name": "getElementsByTagNameNS",
642642
"additionalSignatures": [
643643
"getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/1999/xhtml\", localName: string): HTMLCollectionOf<HTMLElement>",
644-
"getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/2000/svg\", localName: string): HTMLCollectionOf<SVGElement>"
644+
"getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/2000/svg\", localName: string): HTMLCollectionOf<SVGElement>",
645+
"getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/1998/Math/MathML\", localName: string): HTMLCollectionOf<MathMLElement>"
645646
],
646647
"signature": {
647648
"0": {
@@ -1294,7 +1295,8 @@
12941295
"name": "getElementsByTagNameNS",
12951296
"additionalSignatures": [
12961297
"getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/1999/xhtml\", localName: string): HTMLCollectionOf<HTMLElement>",
1297-
"getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/2000/svg\", localName: string): HTMLCollectionOf<SVGElement>"
1298+
"getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/2000/svg\", localName: string): HTMLCollectionOf<SVGElement>",
1299+
"getElementsByTagNameNS(namespaceURI: \"http://www.w3.org/1998/Math/MathML\", localName: string): HTMLCollectionOf<MathMLElement>"
12981300
],
12991301
"signature": {
13001302
"0": {

inputfiles/removedTypes.jsonc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"CredentialMediationRequirement": {
2020
"value": ["conditional"] // tied to Credential#isConditionalMediationAvailable
2121
},
22+
"GamepadHapticActuatorType": {
23+
"value": ["dual-rumble"] // Blink only as of 2022-12
24+
},
2225
"MediaSessionAction": {
2326
"value": [
2427
"hangup", // Blink only as of 2022-09

0 commit comments

Comments
 (0)