Skip to content

Commit 785ee82

Browse files
committed
chore(package): update webref/idl to 2.2.4
I had to do this manually as the action is broken by a parser error: w3c/webidl2.js#599
1 parent d1ff27f commit 785ee82

10 files changed

+156
-212
lines changed

baselines/dom.generated.d.ts

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ interface BlobPropertyBag {
152152
type?: string;
153153
}
154154

155+
interface CSSStyleSheetInit {
156+
baseURL?: string;
157+
disabled?: boolean;
158+
media?: MediaList | string;
159+
}
160+
155161
interface CacheQueryOptions {
156162
ignoreMethod?: boolean;
157163
ignoreSearch?: boolean;
@@ -162,6 +168,7 @@ interface CanvasRenderingContext2DSettings {
162168
alpha?: boolean;
163169
colorSpace?: PredefinedColorSpace;
164170
desynchronized?: boolean;
171+
willReadFrequently?: boolean;
165172
}
166173

167174
interface ChannelMergerOptions extends AudioNodeOptions {
@@ -1571,20 +1578,17 @@ interface ScrollToOptions extends ScrollOptions {
15711578

15721579
interface SecurityPolicyViolationEventInit extends EventInit {
15731580
blockedURI?: string;
1574-
blockedURL?: string;
1575-
colno?: number;
15761581
columnNumber?: number;
15771582
disposition: SecurityPolicyViolationEventDisposition;
1578-
documentURI?: string;
1579-
documentURL: string;
1583+
documentURI: string;
15801584
effectiveDirective: string;
15811585
lineNumber?: number;
1582-
lineno?: number;
15831586
originalPolicy: string;
15841587
referrer?: string;
15851588
sample?: string;
15861589
sourceFile?: string;
15871590
statusCode: number;
1591+
violatedDirective: string;
15881592
}
15891593

15901594
interface ShadowRootInit {
@@ -3221,7 +3225,7 @@ interface CSSStyleSheet extends StyleSheet {
32213225

32223226
declare var CSSStyleSheet: {
32233227
prototype: CSSStyleSheet;
3224-
new(): CSSStyleSheet;
3228+
new(options?: CSSStyleSheetInit): CSSStyleSheet;
32253229
};
32263230

32273231
/** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */
@@ -8106,7 +8110,7 @@ interface HTMLSelectElement extends HTMLElement {
81068110
* @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
81078111
* @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
81088112
*/
8109-
item(index: number): Element | null;
8113+
item(index: number): HTMLOptionElement | null;
81108114
/**
81118115
* Retrieves a select object or an object from an options collection.
81128116
* @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
@@ -12351,20 +12355,6 @@ declare var SVGComponentTransferFunctionElement: {
1235112355
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
1235212356
};
1235312357

12354-
interface SVGCursorElement extends SVGElement {
12355-
readonly x: SVGAnimatedLength;
12356-
readonly y: SVGAnimatedLength;
12357-
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
12358-
addEventListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions): void;
12359-
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
12360-
removeEventListener(type: string, listener: EventListener, options?: boolean | EventListenerOptions): void;
12361-
}
12362-
12363-
declare var SVGCursorElement: {
12364-
prototype: SVGCursorElement;
12365-
new(): SVGCursorElement;
12366-
};
12367-
1236812358
/** Corresponds to the <defs> element. */
1236912359
interface SVGDefsElement extends SVGGraphicsElement {
1237012360
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -18757,7 +18747,7 @@ type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
1875718747
type OverSampleType = "2x" | "4x" | "none";
1875818748
type PanningModelType = "HRTF" | "equalpower";
1875918749
type PaymentComplete = "fail" | "success" | "unknown";
18760-
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push";
18750+
type PermissionName = "gamepad" | "geolocation" | "notifications" | "persistent-storage" | "push";
1876118751
type PermissionState = "denied" | "granted" | "prompt";
1876218752
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
1876318753
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";

baselines/dom.iterable.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ interface HTMLFormElement {
8989
}
9090

9191
interface HTMLSelectElement {
92-
[Symbol.iterator](): IterableIterator<Element>;
92+
[Symbol.iterator](): IterableIterator<HTMLOptionElement>;
9393
}
9494

9595
interface Headers {

baselines/serviceworker.generated.d.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ interface CanvasRenderingContext2DSettings {
6262
alpha?: boolean;
6363
colorSpace?: PredefinedColorSpace;
6464
desynchronized?: boolean;
65+
willReadFrequently?: boolean;
6566
}
6667

6768
interface ClientQueryOptions {
@@ -551,20 +552,17 @@ interface RsaPssParams extends Algorithm {
551552

552553
interface SecurityPolicyViolationEventInit extends EventInit {
553554
blockedURI?: string;
554-
blockedURL?: string;
555-
colno?: number;
556555
columnNumber?: number;
557556
disposition: SecurityPolicyViolationEventDisposition;
558-
documentURI?: string;
559-
documentURL: string;
557+
documentURI: string;
560558
effectiveDirective: string;
561559
lineNumber?: number;
562-
lineno?: number;
563560
originalPolicy: string;
564561
referrer?: string;
565562
sample?: string;
566563
sourceFile?: string;
567564
statusCode: number;
565+
violatedDirective: string;
568566
}
569567

570568
interface StorageEstimate {
@@ -5682,7 +5680,7 @@ type MediaDecodingType = "file" | "media-source" | "webrtc";
56825680
type MediaEncodingType = "record" | "webrtc";
56835681
type NotificationDirection = "auto" | "ltr" | "rtl";
56845682
type NotificationPermission = "default" | "denied" | "granted";
5685-
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push";
5683+
type PermissionName = "gamepad" | "geolocation" | "notifications" | "persistent-storage" | "push";
56865684
type PermissionState = "denied" | "granted" | "prompt";
56875685
type PredefinedColorSpace = "display-p3" | "srgb";
56885686
type PremultiplyAlpha = "default" | "none" | "premultiply";

baselines/sharedworker.generated.d.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ interface CanvasRenderingContext2DSettings {
6262
alpha?: boolean;
6363
colorSpace?: PredefinedColorSpace;
6464
desynchronized?: boolean;
65+
willReadFrequently?: boolean;
6566
}
6667

6768
interface CloseEventInit extends EventInit {
@@ -517,20 +518,17 @@ interface RsaPssParams extends Algorithm {
517518

518519
interface SecurityPolicyViolationEventInit extends EventInit {
519520
blockedURI?: string;
520-
blockedURL?: string;
521-
colno?: number;
522521
columnNumber?: number;
523522
disposition: SecurityPolicyViolationEventDisposition;
524-
documentURI?: string;
525-
documentURL: string;
523+
documentURI: string;
526524
effectiveDirective: string;
527525
lineNumber?: number;
528-
lineno?: number;
529526
originalPolicy: string;
530527
referrer?: string;
531528
sample?: string;
532529
sourceFile?: string;
533530
statusCode: number;
531+
violatedDirective: string;
534532
}
535533

536534
interface StorageEstimate {
@@ -5723,7 +5721,7 @@ type MediaDecodingType = "file" | "media-source" | "webrtc";
57235721
type MediaEncodingType = "record" | "webrtc";
57245722
type NotificationDirection = "auto" | "ltr" | "rtl";
57255723
type NotificationPermission = "default" | "denied" | "granted";
5726-
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push";
5724+
type PermissionName = "gamepad" | "geolocation" | "notifications" | "persistent-storage" | "push";
57275725
type PermissionState = "denied" | "granted" | "prompt";
57285726
type PredefinedColorSpace = "display-p3" | "srgb";
57295727
type PremultiplyAlpha = "default" | "none" | "premultiply";

baselines/webworker.generated.d.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ interface CanvasRenderingContext2DSettings {
6262
alpha?: boolean;
6363
colorSpace?: PredefinedColorSpace;
6464
desynchronized?: boolean;
65+
willReadFrequently?: boolean;
6566
}
6667

6768
interface ClientQueryOptions {
@@ -551,20 +552,17 @@ interface RsaPssParams extends Algorithm {
551552

552553
interface SecurityPolicyViolationEventInit extends EventInit {
553554
blockedURI?: string;
554-
blockedURL?: string;
555-
colno?: number;
556555
columnNumber?: number;
557556
disposition: SecurityPolicyViolationEventDisposition;
558-
documentURI?: string;
559-
documentURL: string;
557+
documentURI: string;
560558
effectiveDirective: string;
561559
lineNumber?: number;
562-
lineno?: number;
563560
originalPolicy: string;
564561
referrer?: string;
565562
sample?: string;
566563
sourceFile?: string;
567564
statusCode: number;
565+
violatedDirective: string;
568566
}
569567

570568
interface StorageEstimate {
@@ -5956,7 +5954,7 @@ type MediaDecodingType = "file" | "media-source" | "webrtc";
59565954
type MediaEncodingType = "record" | "webrtc";
59575955
type NotificationDirection = "auto" | "ltr" | "rtl";
59585956
type NotificationPermission = "default" | "denied" | "granted";
5959-
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push";
5957+
type PermissionName = "gamepad" | "geolocation" | "notifications" | "persistent-storage" | "push";
59605958
type PermissionState = "denied" | "granted" | "prompt";
59615959
type PredefinedColorSpace = "display-p3" | "srgb";
59625960
type PremultiplyAlpha = "default" | "none" | "premultiply";

inputfiles/addedTypes.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -815,25 +815,6 @@
815815
"extends": "Error",
816816
"legacyNamespace": "WebAssembly"
817817
},
818-
"SVGCursorElement": {
819-
"name": "SVGCursorElement",
820-
"extends": "SVGElement",
821-
"exposed": "Window",
822-
"properties": {
823-
"property": {
824-
"x": {
825-
"name": "x",
826-
"readonly": true,
827-
"type": "SVGAnimatedLength"
828-
},
829-
"y": {
830-
"name": "y",
831-
"readonly": true,
832-
"type": "SVGAnimatedLength"
833-
}
834-
}
835-
}
836-
},
837818
"SVGStyleElement": {
838819
"properties": {
839820
"property": {

inputfiles/overridingTypes.json

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2949,28 +2949,6 @@
29492949
}
29502950
}
29512951
},
2952-
"SecurityPolicyViolationEventInit": {
2953-
"members": {
2954-
"member": {
2955-
"documentURI": {
2956-
"name": "documentURI",
2957-
"type": "DOMString"
2958-
},
2959-
"blockedURI": {
2960-
"name": "blockedURI",
2961-
"type": "DOMString"
2962-
},
2963-
"lineNumber": {
2964-
"name": "lineNumber",
2965-
"type": "unsigned long"
2966-
},
2967-
"columnNumber": {
2968-
"name": "columnNumber",
2969-
"type": "unsigned long"
2970-
}
2971-
}
2972-
}
2973-
},
29742952
"UnderlyingSource": {
29752953
"typeParameters": [
29762954
{

inputfiles/removedTypes.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
"NavigatorFonts",
102102
"NavigatorGPU",
103103
"NavigatorLocks",
104+
"NavigatorML",
104105
"NavigatorUA"
105106
]
106107
},
@@ -140,6 +141,7 @@
140141
}
141142
}
142143
},
144+
"SVGAltGlyphElement": null,
143145
"SVGAnimationElement": {
144146
"properties": {
145147
"property": {
@@ -208,6 +210,7 @@
208210
"NavigatorFonts",
209211
"NavigatorGPU",
210212
"NavigatorLocks",
213+
"NavigatorML",
211214
"NavigatorUA"
212215
]
213216
}

0 commit comments

Comments
 (0)