@@ -2363,8 +2363,8 @@ interface ULongRange {
2363
2363
}
2364
2364
2365
2365
interface URLPatternComponentResult {
2366
- groups? : Record<string, string | undefined>;
2367
- input? : string;
2366
+ groups: Record<string, string | undefined>;
2367
+ input: string;
2368
2368
}
2369
2369
2370
2370
interface URLPatternInit {
@@ -2384,15 +2384,15 @@ interface URLPatternOptions {
2384
2384
}
2385
2385
2386
2386
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;
2396
2396
}
2397
2397
2398
2398
interface UnderlyingByteSource {
@@ -4821,7 +4821,7 @@ interface CSSFontFaceRule extends CSSRule {
4821
4821
*
4822
4822
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
4823
4823
*/
4824
- get style(): CSSStyleProperties ;
4824
+ get style(): CSSStyleDeclaration ;
4825
4825
set style(cssText: string);
4826
4826
}
4827
4827
@@ -4991,7 +4991,7 @@ interface CSSKeyframeRule extends CSSRule {
4991
4991
*
4992
4992
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
4993
4993
*/
4994
- get style(): CSSStyleProperties ;
4994
+ get style(): CSSStyleDeclaration ;
4995
4995
set style(cssText: string);
4996
4996
}
4997
4997
@@ -5326,7 +5326,7 @@ interface CSSNestedDeclarations extends CSSRule {
5326
5326
*
5327
5327
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)
5328
5328
*/
5329
- get style(): CSSStyleProperties ;
5329
+ get style(): CSSStyleDeclaration ;
5330
5330
set style(cssText: string);
5331
5331
}
5332
5332
@@ -5440,7 +5440,7 @@ declare var CSSNumericValue: {
5440
5440
*
5441
5441
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors)
5442
5442
*/
5443
- interface CSSPageDescriptors extends CSSStyleDeclaration {
5443
+ interface CSSPageDescriptors extends CSSStyleDeclarationBase {
5444
5444
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin) */
5445
5445
margin: string;
5446
5446
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin-bottom) */
@@ -5518,7 +5518,7 @@ declare var CSSPerspective: {
5518
5518
*
5519
5519
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors)
5520
5520
*/
5521
- interface CSSPositionTryDescriptors extends CSSStyleDeclaration {
5521
+ interface CSSPositionTryDescriptors extends CSSStyleDeclarationBase {
5522
5522
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
5523
5523
"align-self": string;
5524
5524
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
@@ -5992,7 +5992,7 @@ declare var CSSStartingStyleRule: {
5992
5992
*
5993
5993
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
5994
5994
*/
5995
- interface CSSStyleDeclaration {
5995
+ interface CSSStyleDeclarationBase {
5996
5996
/**
5997
5997
* The **`cssText`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only.
5998
5998
*
@@ -6044,12 +6044,15 @@ interface CSSStyleDeclaration {
6044
6044
[index: number]: string;
6045
6045
}
6046
6046
6047
+ interface CSSStyleDeclaration extends CSSStyleProperties {
6048
+ }
6049
+
6047
6050
declare var CSSStyleDeclaration: {
6048
6051
prototype: CSSStyleDeclaration;
6049
6052
new(): CSSStyleDeclaration;
6050
6053
};
6051
6054
6052
- interface CSSStyleProperties extends CSSStyleDeclaration {
6055
+ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6053
6056
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
6054
6057
accentColor: string;
6055
6058
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
@@ -7414,7 +7417,7 @@ interface CSSStyleRule extends CSSGroupingRule {
7414
7417
*
7415
7418
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
7416
7419
*/
7417
- get style(): CSSStyleProperties ;
7420
+ get style(): CSSStyleDeclaration ;
7418
7421
set style(cssText: string);
7419
7422
/**
7420
7423
* The **`styleMap`** read-only property of the CSSStyleRule interface returns a StylePropertyMap object which provides access to the rule's property-value pairs.
@@ -11458,7 +11461,7 @@ interface ElementCSSInlineStyle {
11458
11461
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
11459
11462
readonly attributeStyleMap: StylePropertyMap;
11460
11463
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
11461
- get style(): CSSStyleProperties ;
11464
+ get style(): CSSStyleDeclaration ;
11462
11465
set style(cssText: string);
11463
11466
}
11464
11467
@@ -37355,7 +37358,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
37355
37358
*
37356
37359
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
37357
37360
*/
37358
- getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleProperties ;
37361
+ getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration ;
37359
37362
/**
37360
37363
* 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.
37361
37364
*
@@ -39457,7 +39460,7 @@ declare function focus(): void;
39457
39460
*
39458
39461
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
39459
39462
*/
39460
- declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleProperties ;
39463
+ declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration ;
39461
39464
/**
39462
39465
* 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.
39463
39466
*
0 commit comments