From 8dce363ae08cf1a8fddbb1bd6e7f884600c08629 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 29 Mar 2026 23:39:18 +0200 Subject: [PATCH] Manually update to bcd@7.3.9 --- baselines/dom.generated.d.ts | 56 +++++++++++++++++++++++++++++- baselines/ts5.5/dom.generated.d.ts | 56 +++++++++++++++++++++++++++++- baselines/ts5.6/dom.generated.d.ts | 56 +++++++++++++++++++++++++++++- baselines/ts5.9/dom.generated.d.ts | 56 +++++++++++++++++++++++++++++- inputfiles/knownTypes.json | 1 - inputfiles/patches/aria.kdl | 11 ++++++ inputfiles/patches/css-font.kdl | 7 ---- package-lock.json | 6 ++-- 8 files changed, 234 insertions(+), 15 deletions(-) create mode 100644 inputfiles/patches/aria.kdl diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 67df663b2..49869687a 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1215,6 +1215,15 @@ interface HashChangeEventInit extends EventInit { oldURL?: string; } +interface HighlightHitResult { + highlight?: Highlight; + ranges?: AbstractRange[]; +} + +interface HighlightsFromPointOptions { + shadowRoots?: ShadowRoot[]; +} + interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; @@ -5369,6 +5378,36 @@ declare var CSSCounterStyleRule: { new(): CSSCounterStyleRule; }; +/** + * The **`CSSFontFaceDescriptors`** interface represents a CSS declaration block for an @font-face at-rule. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceDescriptors) + */ +interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase { + "font-display": string; + "font-family": string; + "font-feature-settings": string; + "font-stretch": string; + "font-style": string; + "font-weight": string; + fontDisplay: string; + fontFamily: string; + fontFeatureSettings: string; + fontStretch: string; + fontStyle: string; + fontWeight: string; + "size-adjust": string; + sizeAdjust: string; + src: string; + "unicode-range": string; + unicodeRange: string; +} + +declare var CSSFontFaceDescriptors: { + prototype: CSSFontFaceDescriptors; + new(): CSSFontFaceDescriptors; +}; + /** * The **`CSSFontFaceRule`** interface represents an @font-face at-rule. * @@ -5380,7 +5419,7 @@ interface CSSFontFaceRule extends CSSRule { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ - get style(): CSSStyleDeclaration; + get style(): CSSFontFaceDescriptors; set style(cssText: string); } @@ -21912,6 +21951,12 @@ declare var Highlight: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */ interface HighlightRegistry { + /** + * The **`highlightsFromPoint()`** method of the HighlightRegistry interface returns an array of objects representing the custom highlights applied at a specific point within the viewport. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry/highlightsFromPoint) + */ + highlightsFromPoint(x: number, y: number, options?: HighlightsFromPointOptions): HighlightHitResult[]; forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void; } @@ -29479,6 +29524,12 @@ interface RTCIceTransport extends EventTarget { onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */ onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; + /** + * The **`role`** read-only property of the RTCIceTransport interface indicates which ICE role the transport is fulfilling: that of the controlling agent, or the agent that is being controlled. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/role) + */ + readonly role: RTCIceRole; /** * The **`state`** read-only property of the RTCIceTransport interface returns the current state of the ICE transport, so you can determine the state of ICE gathering in which the ICE agent currently is operating. * @@ -38303,6 +38354,7 @@ declare var ViewTransitionTypeSet: { interface VisualViewportEventMap { "resize": Event; "scroll": Event; + "scrollend": Event; } /** @@ -38333,6 +38385,8 @@ interface VisualViewport extends EventTarget { onresize: ((this: VisualViewport, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */ onscroll: ((this: VisualViewport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scrollend_event) */ + onscrollend: ((this: VisualViewport, ev: Event) => any) | null; /** * The **`pageLeft`** read-only property of the VisualViewport interface returns the x coordinate of the left edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or 0 if current document is not fully active. * diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index fcab6f0c9..c2605d732 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -1212,6 +1212,15 @@ interface HashChangeEventInit extends EventInit { oldURL?: string; } +interface HighlightHitResult { + highlight?: Highlight; + ranges?: AbstractRange[]; +} + +interface HighlightsFromPointOptions { + shadowRoots?: ShadowRoot[]; +} + interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; @@ -5366,6 +5375,36 @@ declare var CSSCounterStyleRule: { new(): CSSCounterStyleRule; }; +/** + * The **`CSSFontFaceDescriptors`** interface represents a CSS declaration block for an @font-face at-rule. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceDescriptors) + */ +interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase { + "font-display": string; + "font-family": string; + "font-feature-settings": string; + "font-stretch": string; + "font-style": string; + "font-weight": string; + fontDisplay: string; + fontFamily: string; + fontFeatureSettings: string; + fontStretch: string; + fontStyle: string; + fontWeight: string; + "size-adjust": string; + sizeAdjust: string; + src: string; + "unicode-range": string; + unicodeRange: string; +} + +declare var CSSFontFaceDescriptors: { + prototype: CSSFontFaceDescriptors; + new(): CSSFontFaceDescriptors; +}; + /** * The **`CSSFontFaceRule`** interface represents an @font-face at-rule. * @@ -5377,7 +5416,7 @@ interface CSSFontFaceRule extends CSSRule { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ - readonly style: CSSStyleDeclaration; + readonly style: CSSFontFaceDescriptors; } declare var CSSFontFaceRule: { @@ -21888,6 +21927,12 @@ declare var Highlight: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */ interface HighlightRegistry { + /** + * The **`highlightsFromPoint()`** method of the HighlightRegistry interface returns an array of objects representing the custom highlights applied at a specific point within the viewport. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry/highlightsFromPoint) + */ + highlightsFromPoint(x: number, y: number, options?: HighlightsFromPointOptions): HighlightHitResult[]; forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void; } @@ -29455,6 +29500,12 @@ interface RTCIceTransport extends EventTarget { onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */ onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; + /** + * The **`role`** read-only property of the RTCIceTransport interface indicates which ICE role the transport is fulfilling: that of the controlling agent, or the agent that is being controlled. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/role) + */ + readonly role: RTCIceRole; /** * The **`state`** read-only property of the RTCIceTransport interface returns the current state of the ICE transport, so you can determine the state of ICE gathering in which the ICE agent currently is operating. * @@ -38277,6 +38328,7 @@ declare var ViewTransitionTypeSet: { interface VisualViewportEventMap { "resize": Event; "scroll": Event; + "scrollend": Event; } /** @@ -38307,6 +38359,8 @@ interface VisualViewport extends EventTarget { onresize: ((this: VisualViewport, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */ onscroll: ((this: VisualViewport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scrollend_event) */ + onscrollend: ((this: VisualViewport, ev: Event) => any) | null; /** * The **`pageLeft`** read-only property of the VisualViewport interface returns the x coordinate of the left edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or 0 if current document is not fully active. * diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 628f2f92d..080755c34 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -1212,6 +1212,15 @@ interface HashChangeEventInit extends EventInit { oldURL?: string; } +interface HighlightHitResult { + highlight?: Highlight; + ranges?: AbstractRange[]; +} + +interface HighlightsFromPointOptions { + shadowRoots?: ShadowRoot[]; +} + interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; @@ -5366,6 +5375,36 @@ declare var CSSCounterStyleRule: { new(): CSSCounterStyleRule; }; +/** + * The **`CSSFontFaceDescriptors`** interface represents a CSS declaration block for an @font-face at-rule. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceDescriptors) + */ +interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase { + "font-display": string; + "font-family": string; + "font-feature-settings": string; + "font-stretch": string; + "font-style": string; + "font-weight": string; + fontDisplay: string; + fontFamily: string; + fontFeatureSettings: string; + fontStretch: string; + fontStyle: string; + fontWeight: string; + "size-adjust": string; + sizeAdjust: string; + src: string; + "unicode-range": string; + unicodeRange: string; +} + +declare var CSSFontFaceDescriptors: { + prototype: CSSFontFaceDescriptors; + new(): CSSFontFaceDescriptors; +}; + /** * The **`CSSFontFaceRule`** interface represents an @font-face at-rule. * @@ -5377,7 +5416,7 @@ interface CSSFontFaceRule extends CSSRule { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ - get style(): CSSStyleDeclaration; + get style(): CSSFontFaceDescriptors; set style(cssText: string); } @@ -21909,6 +21948,12 @@ declare var Highlight: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */ interface HighlightRegistry { + /** + * The **`highlightsFromPoint()`** method of the HighlightRegistry interface returns an array of objects representing the custom highlights applied at a specific point within the viewport. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry/highlightsFromPoint) + */ + highlightsFromPoint(x: number, y: number, options?: HighlightsFromPointOptions): HighlightHitResult[]; forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void; } @@ -29476,6 +29521,12 @@ interface RTCIceTransport extends EventTarget { onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */ onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; + /** + * The **`role`** read-only property of the RTCIceTransport interface indicates which ICE role the transport is fulfilling: that of the controlling agent, or the agent that is being controlled. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/role) + */ + readonly role: RTCIceRole; /** * The **`state`** read-only property of the RTCIceTransport interface returns the current state of the ICE transport, so you can determine the state of ICE gathering in which the ICE agent currently is operating. * @@ -38300,6 +38351,7 @@ declare var ViewTransitionTypeSet: { interface VisualViewportEventMap { "resize": Event; "scroll": Event; + "scrollend": Event; } /** @@ -38330,6 +38382,8 @@ interface VisualViewport extends EventTarget { onresize: ((this: VisualViewport, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */ onscroll: ((this: VisualViewport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scrollend_event) */ + onscrollend: ((this: VisualViewport, ev: Event) => any) | null; /** * The **`pageLeft`** read-only property of the VisualViewport interface returns the x coordinate of the left edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or 0 if current document is not fully active. * diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index fca24b564..e7d397376 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -1212,6 +1212,15 @@ interface HashChangeEventInit extends EventInit { oldURL?: string; } +interface HighlightHitResult { + highlight?: Highlight; + ranges?: AbstractRange[]; +} + +interface HighlightsFromPointOptions { + shadowRoots?: ShadowRoot[]; +} + interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; @@ -5366,6 +5375,36 @@ declare var CSSCounterStyleRule: { new(): CSSCounterStyleRule; }; +/** + * The **`CSSFontFaceDescriptors`** interface represents a CSS declaration block for an @font-face at-rule. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceDescriptors) + */ +interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase { + "font-display": string; + "font-family": string; + "font-feature-settings": string; + "font-stretch": string; + "font-style": string; + "font-weight": string; + fontDisplay: string; + fontFamily: string; + fontFeatureSettings: string; + fontStretch: string; + fontStyle: string; + fontWeight: string; + "size-adjust": string; + sizeAdjust: string; + src: string; + "unicode-range": string; + unicodeRange: string; +} + +declare var CSSFontFaceDescriptors: { + prototype: CSSFontFaceDescriptors; + new(): CSSFontFaceDescriptors; +}; + /** * The **`CSSFontFaceRule`** interface represents an @font-face at-rule. * @@ -5377,7 +5416,7 @@ interface CSSFontFaceRule extends CSSRule { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ - get style(): CSSStyleDeclaration; + get style(): CSSFontFaceDescriptors; set style(cssText: string); } @@ -21909,6 +21948,12 @@ declare var Highlight: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */ interface HighlightRegistry { + /** + * The **`highlightsFromPoint()`** method of the HighlightRegistry interface returns an array of objects representing the custom highlights applied at a specific point within the viewport. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry/highlightsFromPoint) + */ + highlightsFromPoint(x: number, y: number, options?: HighlightsFromPointOptions): HighlightHitResult[]; forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void; } @@ -29476,6 +29521,12 @@ interface RTCIceTransport extends EventTarget { onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */ onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; + /** + * The **`role`** read-only property of the RTCIceTransport interface indicates which ICE role the transport is fulfilling: that of the controlling agent, or the agent that is being controlled. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/role) + */ + readonly role: RTCIceRole; /** * The **`state`** read-only property of the RTCIceTransport interface returns the current state of the ICE transport, so you can determine the state of ICE gathering in which the ICE agent currently is operating. * @@ -38300,6 +38351,7 @@ declare var ViewTransitionTypeSet: { interface VisualViewportEventMap { "resize": Event; "scroll": Event; + "scrollend": Event; } /** @@ -38330,6 +38382,8 @@ interface VisualViewport extends EventTarget { onresize: ((this: VisualViewport, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */ onscroll: ((this: VisualViewport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scrollend_event) */ + onscrollend: ((this: VisualViewport, ev: Event) => any) | null; /** * The **`pageLeft`** read-only property of the VisualViewport interface returns the x coordinate of the left edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or 0 if current document is not fully active. * diff --git a/inputfiles/knownTypes.json b/inputfiles/knownTypes.json index ba052fbbf..3abf26035 100644 --- a/inputfiles/knownTypes.json +++ b/inputfiles/knownTypes.json @@ -47,7 +47,6 @@ "RTCCertificateExpiration", "RTCDtlsRole", "RTCIceCandidatePairStats", - "RTCIceRole", "RTCInboundRtpStreamStats", "RTCOutboundRtpStreamStats", "RTCQualityLimitationReason", diff --git a/inputfiles/patches/aria.kdl b/inputfiles/patches/aria.kdl new file mode 100644 index 000000000..f087edca2 --- /dev/null +++ b/inputfiles/patches/aria.kdl @@ -0,0 +1,11 @@ +// https://w3c.github.io/aria/ + +removals { + // Gecko only as of 2026-03 + interface Document { + includes ARIANotifyMixin + } + interface Element { + includes ARIANotifyMixin + } +} diff --git a/inputfiles/patches/css-font.kdl b/inputfiles/patches/css-font.kdl index 369321260..9b4c1fdac 100644 --- a/inputfiles/patches/css-font.kdl +++ b/inputfiles/patches/css-font.kdl @@ -10,10 +10,3 @@ enum FontDisplay { dictionary FontFaceDescriptors { member display type=FontDisplay } - -interface CSSFontFaceRule { - // CSS Fonts Level 4 now says CSSFontFaceDescriptors - // but nobody implements it as of 2024-04 - // https://github.com/w3c/csswg-drafts/pull/9686 - property style type=CSSStyleProperties -} diff --git a/package-lock.json b/package-lock.json index a5ecf3935..6484c8808 100644 --- a/package-lock.json +++ b/package-lock.json @@ -331,9 +331,9 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-7.3.7.tgz", - "integrity": "sha512-5SOIC+Km3h9GGvirsvIZ09sqK41Vq+1II3dgpg4bEl6lb9ckVKvrEtOJ4vuoJh2X7/TK2TooSVqtrJCqbEQEAw==", + "version": "7.3.9", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-7.3.9.tgz", + "integrity": "sha512-ARxwDFfq4uhRSd9Wr1FMaxeKKIFDPyMnSoLe/8WX+nNXbKDILf1H8KDJW9nzu2QTR0hQ37jDCzAgyaNYdLzACQ==", "dev": true, "license": "CC0-1.0" },