Skip to content

Commit 8a91389

Browse files
authored
Merge branch 'main' into mdn-v2
2 parents 2d28438 + 74cb4f6 commit 8a91389

23 files changed

+285
-178
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77

88
steps:
99
- uses: actions/checkout@v4
10-
- uses: actions/setup-node@v4
10+
- uses: actions/setup-node@v5
1111
with:
1212
node-version: "lts/*"
1313
cache: npm

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
submodules: true # Ensures submodules are cloned
2121

22-
- uses: actions/setup-node@v4
22+
- uses: actions/setup-node@v5
2323
with:
2424
node-version: "lts/*"
2525
cache: npm

.github/workflows/test_typescript.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
submodules: true # Ensures submodules are cloned
1919

2020

21-
- uses: actions/setup-node@v4
21+
- uses: actions/setup-node@v5
2222
with:
2323
node-version: "lts/*"
2424
cache: npm

.github/workflows/update-core-deps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
| { mdn_url, pageType, summary } ] }' \
2525
> mdn.json
2626
27-
- uses: actions/setup-node@v4
27+
- uses: actions/setup-node@v5
2828
with:
2929
node-version: "lts/*"
3030
cache: npm

baselines/dom.generated.d.ts

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,8 +2363,8 @@ interface ULongRange {
23632363
}
23642364

23652365
interface URLPatternComponentResult {
2366-
groups?: Record<string, string | undefined>;
2367-
input?: string;
2366+
groups: Record<string, string | undefined>;
2367+
input: string;
23682368
}
23692369

23702370
interface URLPatternInit {
@@ -2384,15 +2384,15 @@ interface URLPatternOptions {
23842384
}
23852385

23862386
interface URLPatternResult {
2387-
hash?: URLPatternComponentResult;
2388-
hostname?: URLPatternComponentResult;
2389-
inputs?: URLPatternInput[];
2390-
password?: URLPatternComponentResult;
2391-
pathname?: URLPatternComponentResult;
2392-
port?: URLPatternComponentResult;
2393-
protocol?: URLPatternComponentResult;
2394-
search?: URLPatternComponentResult;
2395-
username?: URLPatternComponentResult;
2387+
hash: URLPatternComponentResult;
2388+
hostname: URLPatternComponentResult;
2389+
inputs: URLPatternInput[];
2390+
password: URLPatternComponentResult;
2391+
pathname: URLPatternComponentResult;
2392+
port: URLPatternComponentResult;
2393+
protocol: URLPatternComponentResult;
2394+
search: URLPatternComponentResult;
2395+
username: URLPatternComponentResult;
23962396
}
23972397

23982398
interface UnderlyingByteSource {
@@ -4825,7 +4825,7 @@ interface CSSFontFaceRule extends CSSRule {
48254825
*
48264826
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
48274827
*/
4828-
get style(): CSSStyleProperties;
4828+
get style(): CSSStyleDeclaration;
48294829
set style(cssText: string);
48304830
}
48314831

@@ -4995,7 +4995,7 @@ interface CSSKeyframeRule extends CSSRule {
49954995
*
49964996
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
49974997
*/
4998-
get style(): CSSStyleProperties;
4998+
get style(): CSSStyleDeclaration;
49994999
set style(cssText: string);
50005000
}
50015001

@@ -5330,7 +5330,7 @@ interface CSSNestedDeclarations extends CSSRule {
53305330
*
53315331
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)
53325332
*/
5333-
get style(): CSSStyleProperties;
5333+
get style(): CSSStyleDeclaration;
53345334
set style(cssText: string);
53355335
}
53365336

@@ -5444,7 +5444,7 @@ declare var CSSNumericValue: {
54445444
*
54455445
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors)
54465446
*/
5447-
interface CSSPageDescriptors extends CSSStyleDeclaration {
5447+
interface CSSPageDescriptors extends CSSStyleDeclarationBase {
54485448
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin) */
54495449
margin: string;
54505450
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin-bottom) */
@@ -5522,7 +5522,7 @@ declare var CSSPerspective: {
55225522
*
55235523
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors)
55245524
*/
5525-
interface CSSPositionTryDescriptors extends CSSStyleDeclaration {
5525+
interface CSSPositionTryDescriptors extends CSSStyleDeclarationBase {
55265526
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
55275527
"align-self": string;
55285528
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
@@ -5996,7 +5996,7 @@ declare var CSSStartingStyleRule: {
59965996
*
59975997
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
59985998
*/
5999-
interface CSSStyleDeclaration {
5999+
interface CSSStyleDeclarationBase {
60006000
/**
60016001
* The cssText property of the CSSStyleDeclaration interface returns or sets the text of the element's inline style declaration only.
60026002
*
@@ -6048,12 +6048,15 @@ interface CSSStyleDeclaration {
60486048
[index: number]: string;
60496049
}
60506050

6051+
interface CSSStyleDeclaration extends CSSStyleProperties {
6052+
}
6053+
60516054
declare var CSSStyleDeclaration: {
60526055
prototype: CSSStyleDeclaration;
60536056
new(): CSSStyleDeclaration;
60546057
};
60556058

6056-
interface CSSStyleProperties extends CSSStyleDeclaration {
6059+
interface CSSStyleProperties extends CSSStyleDeclarationBase {
60576060
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
60586061
accentColor: string;
60596062
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
@@ -7418,7 +7421,7 @@ interface CSSStyleRule extends CSSGroupingRule {
74187421
*
74197422
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
74207423
*/
7421-
get style(): CSSStyleProperties;
7424+
get style(): CSSStyleDeclaration;
74227425
set style(cssText: string);
74237426
/**
74247427
* The styleMap read-only property of the CSSStyleRule interface returns a StylePropertyMap object which provides access to the rule's property-value pairs.
@@ -11462,7 +11465,7 @@ interface ElementCSSInlineStyle {
1146211465
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
1146311466
readonly attributeStyleMap: StylePropertyMap;
1146411467
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
11465-
get style(): CSSStyleProperties;
11468+
get style(): CSSStyleDeclaration;
1146611469
set style(cssText: string);
1146711470
}
1146811471

@@ -37359,7 +37362,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
3735937362
*
3736037363
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
3736137364
*/
37362-
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleProperties;
37365+
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
3736337366
/**
3736437367
* The getSelection() method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
3736537368
*
@@ -39461,7 +39464,7 @@ declare function focus(): void;
3946139464
*
3946239465
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
3946339466
*/
39464-
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleProperties;
39467+
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
3946539468
/**
3946639469
* The getSelection() method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
3946739470
*

baselines/serviceworker.generated.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,8 @@ interface Transformer<I = any, O = any> {
740740
}
741741

742742
interface URLPatternComponentResult {
743-
groups?: Record<string, string | undefined>;
744-
input?: string;
743+
groups: Record<string, string | undefined>;
744+
input: string;
745745
}
746746

747747
interface URLPatternInit {
@@ -761,15 +761,15 @@ interface URLPatternOptions {
761761
}
762762

763763
interface URLPatternResult {
764-
hash?: URLPatternComponentResult;
765-
hostname?: URLPatternComponentResult;
766-
inputs?: URLPatternInput[];
767-
password?: URLPatternComponentResult;
768-
pathname?: URLPatternComponentResult;
769-
port?: URLPatternComponentResult;
770-
protocol?: URLPatternComponentResult;
771-
search?: URLPatternComponentResult;
772-
username?: URLPatternComponentResult;
764+
hash: URLPatternComponentResult;
765+
hostname: URLPatternComponentResult;
766+
inputs: URLPatternInput[];
767+
password: URLPatternComponentResult;
768+
pathname: URLPatternComponentResult;
769+
port: URLPatternComponentResult;
770+
protocol: URLPatternComponentResult;
771+
search: URLPatternComponentResult;
772+
username: URLPatternComponentResult;
773773
}
774774

775775
interface UnderlyingByteSource {

baselines/sharedworker.generated.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,8 @@ interface Transformer<I = any, O = any> {
670670
}
671671

672672
interface URLPatternComponentResult {
673-
groups?: Record<string, string | undefined>;
674-
input?: string;
673+
groups: Record<string, string | undefined>;
674+
input: string;
675675
}
676676

677677
interface URLPatternInit {
@@ -691,15 +691,15 @@ interface URLPatternOptions {
691691
}
692692

693693
interface URLPatternResult {
694-
hash?: URLPatternComponentResult;
695-
hostname?: URLPatternComponentResult;
696-
inputs?: URLPatternInput[];
697-
password?: URLPatternComponentResult;
698-
pathname?: URLPatternComponentResult;
699-
port?: URLPatternComponentResult;
700-
protocol?: URLPatternComponentResult;
701-
search?: URLPatternComponentResult;
702-
username?: URLPatternComponentResult;
694+
hash: URLPatternComponentResult;
695+
hostname: URLPatternComponentResult;
696+
inputs: URLPatternInput[];
697+
password: URLPatternComponentResult;
698+
pathname: URLPatternComponentResult;
699+
port: URLPatternComponentResult;
700+
protocol: URLPatternComponentResult;
701+
search: URLPatternComponentResult;
702+
username: URLPatternComponentResult;
703703
}
704704

705705
interface UnderlyingByteSource {

baselines/ts5.5/dom.generated.d.ts

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,8 +2363,8 @@ interface ULongRange {
23632363
}
23642364

23652365
interface URLPatternComponentResult {
2366-
groups?: Record<string, string | undefined>;
2367-
input?: string;
2366+
groups: Record<string, string | undefined>;
2367+
input: string;
23682368
}
23692369

23702370
interface URLPatternInit {
@@ -2384,15 +2384,15 @@ interface URLPatternOptions {
23842384
}
23852385

23862386
interface URLPatternResult {
2387-
hash?: URLPatternComponentResult;
2388-
hostname?: URLPatternComponentResult;
2389-
inputs?: URLPatternInput[];
2390-
password?: URLPatternComponentResult;
2391-
pathname?: URLPatternComponentResult;
2392-
port?: URLPatternComponentResult;
2393-
protocol?: URLPatternComponentResult;
2394-
search?: URLPatternComponentResult;
2395-
username?: URLPatternComponentResult;
2387+
hash: URLPatternComponentResult;
2388+
hostname: URLPatternComponentResult;
2389+
inputs: URLPatternInput[];
2390+
password: URLPatternComponentResult;
2391+
pathname: URLPatternComponentResult;
2392+
port: URLPatternComponentResult;
2393+
protocol: URLPatternComponentResult;
2394+
search: URLPatternComponentResult;
2395+
username: URLPatternComponentResult;
23962396
}
23972397

23982398
interface UnderlyingByteSource {
@@ -4825,7 +4825,7 @@ interface CSSFontFaceRule extends CSSRule {
48254825
*
48264826
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
48274827
*/
4828-
readonly style: CSSStyleProperties;
4828+
readonly style: CSSStyleDeclaration;
48294829
}
48304830

48314831
declare var CSSFontFaceRule: {
@@ -4993,7 +4993,7 @@ interface CSSKeyframeRule extends CSSRule {
49934993
*
49944994
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
49954995
*/
4996-
readonly style: CSSStyleProperties;
4996+
readonly style: CSSStyleDeclaration;
49974997
}
49984998

49994999
declare var CSSKeyframeRule: {
@@ -5326,7 +5326,7 @@ interface CSSNestedDeclarations extends CSSRule {
53265326
*
53275327
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)
53285328
*/
5329-
readonly style: CSSStyleProperties;
5329+
readonly style: CSSStyleDeclaration;
53305330
}
53315331

53325332
declare var CSSNestedDeclarations: {
@@ -5439,7 +5439,7 @@ declare var CSSNumericValue: {
54395439
*
54405440
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors)
54415441
*/
5442-
interface CSSPageDescriptors extends CSSStyleDeclaration {
5442+
interface CSSPageDescriptors extends CSSStyleDeclarationBase {
54435443
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin) */
54445444
margin: string;
54455445
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin-bottom) */
@@ -5516,7 +5516,7 @@ declare var CSSPerspective: {
55165516
*
55175517
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors)
55185518
*/
5519-
interface CSSPositionTryDescriptors extends CSSStyleDeclaration {
5519+
interface CSSPositionTryDescriptors extends CSSStyleDeclarationBase {
55205520
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
55215521
"align-self": string;
55225522
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
@@ -5989,7 +5989,7 @@ declare var CSSStartingStyleRule: {
59895989
*
59905990
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
59915991
*/
5992-
interface CSSStyleDeclaration {
5992+
interface CSSStyleDeclarationBase {
59935993
/**
59945994
* The cssText property of the CSSStyleDeclaration interface returns or sets the text of the element's inline style declaration only.
59955995
*
@@ -6041,12 +6041,15 @@ interface CSSStyleDeclaration {
60416041
[index: number]: string;
60426042
}
60436043

6044+
interface CSSStyleDeclaration extends CSSStyleProperties {
6045+
}
6046+
60446047
declare var CSSStyleDeclaration: {
60456048
prototype: CSSStyleDeclaration;
60466049
new(): CSSStyleDeclaration;
60476050
};
60486051

6049-
interface CSSStyleProperties extends CSSStyleDeclaration {
6052+
interface CSSStyleProperties extends CSSStyleDeclarationBase {
60506053
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
60516054
accentColor: string;
60526055
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
@@ -7411,7 +7414,7 @@ interface CSSStyleRule extends CSSGroupingRule {
74117414
*
74127415
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
74137416
*/
7414-
readonly style: CSSStyleProperties;
7417+
readonly style: CSSStyleDeclaration;
74157418
/**
74167419
* The styleMap read-only property of the CSSStyleRule interface returns a StylePropertyMap object which provides access to the rule's property-value pairs.
74177420
*
@@ -11452,7 +11455,7 @@ interface ElementCSSInlineStyle {
1145211455
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
1145311456
readonly attributeStyleMap: StylePropertyMap;
1145411457
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
11455-
readonly style: CSSStyleProperties;
11458+
readonly style: CSSStyleDeclaration;
1145611459
}
1145711460

1145811461
interface ElementContentEditable {
@@ -37336,7 +37339,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
3733637339
*
3733737340
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
3733837341
*/
37339-
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleProperties;
37342+
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
3734037343
/**
3734137344
* The getSelection() method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
3734237345
*
@@ -39438,7 +39441,7 @@ declare function focus(): void;
3943839441
*
3943939442
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
3944039443
*/
39441-
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleProperties;
39444+
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
3944239445
/**
3944339446
* The getSelection() method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
3944439447
*

0 commit comments

Comments
 (0)