@@ -4785,7 +4785,7 @@ interface CSSFontFaceRule extends CSSRule {
4785
4785
*
4786
4786
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
4787
4787
*/
4788
- get style(): CSSStyleDeclaration ;
4788
+ get style(): CSSStyleProperties ;
4789
4789
set style(cssText: string);
4790
4790
}
4791
4791
@@ -4955,7 +4955,7 @@ interface CSSKeyframeRule extends CSSRule {
4955
4955
*
4956
4956
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
4957
4957
*/
4958
- get style(): CSSStyleDeclaration ;
4958
+ get style(): CSSStyleProperties ;
4959
4959
set style(cssText: string);
4960
4960
}
4961
4961
@@ -5290,7 +5290,7 @@ interface CSSNestedDeclarations extends CSSRule {
5290
5290
*
5291
5291
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)
5292
5292
*/
5293
- get style(): CSSStyleDeclaration ;
5293
+ get style(): CSSStyleProperties ;
5294
5294
set style(cssText: string);
5295
5295
}
5296
5296
@@ -5416,7 +5416,7 @@ interface CSSPageRule extends CSSGroupingRule {
5416
5416
*
5417
5417
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style)
5418
5418
*/
5419
- get style(): CSSStyleDeclaration ;
5419
+ get style(): CSSStyleProperties ;
5420
5420
set style(cssText: string);
5421
5421
}
5422
5422
@@ -5745,6 +5745,63 @@ declare var CSSStartingStyleRule: {
5745
5745
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
5746
5746
*/
5747
5747
interface CSSStyleDeclaration {
5748
+ /**
5749
+ * The **`cssText`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only.
5750
+ *
5751
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText)
5752
+ */
5753
+ cssText: string;
5754
+ /**
5755
+ * The read-only property returns an integer that represents the number of style declarations in this CSS declaration block.
5756
+ *
5757
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length)
5758
+ */
5759
+ readonly length: number;
5760
+ /**
5761
+ * The **CSSStyleDeclaration.parentRule** read-only property returns a CSSRule that is the parent of this style block, e.g., a CSSStyleRule representing the style for a CSS selector.
5762
+ *
5763
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule)
5764
+ */
5765
+ readonly parentRule: CSSRule | null;
5766
+ /**
5767
+ * The **CSSStyleDeclaration.getPropertyPriority()** method interface returns a string that provides all explicitly set priorities on the CSS property.
5768
+ *
5769
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority)
5770
+ */
5771
+ getPropertyPriority(property: string): string;
5772
+ /**
5773
+ * The **CSSStyleDeclaration.getPropertyValue()** method interface returns a string containing the value of a specified CSS property.
5774
+ *
5775
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue)
5776
+ */
5777
+ getPropertyValue(property: string): string;
5778
+ /**
5779
+ * The `CSSStyleDeclaration.item()` method interface returns a CSS property name from a CSSStyleDeclaration by index.
5780
+ *
5781
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item)
5782
+ */
5783
+ item(index: number): string;
5784
+ /**
5785
+ * The **`CSSStyleDeclaration.removeProperty()`** method interface removes a property from a CSS style declaration object.
5786
+ *
5787
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty)
5788
+ */
5789
+ removeProperty(property: string): string;
5790
+ /**
5791
+ * The **`CSSStyleDeclaration.setProperty()`** method interface sets a new value for a property on a CSS style declaration object.
5792
+ *
5793
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty)
5794
+ */
5795
+ setProperty(property: string, value: string | null, priority?: string): void;
5796
+ [index: number]: string;
5797
+ }
5798
+
5799
+ declare var CSSStyleDeclaration: {
5800
+ prototype: CSSStyleDeclaration;
5801
+ new(): CSSStyleDeclaration;
5802
+ };
5803
+
5804
+ interface CSSStyleProperties extends CSSStyleDeclaration {
5748
5805
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
5749
5806
accentColor: string;
5750
5807
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
@@ -6034,12 +6091,6 @@ interface CSSStyleDeclaration {
6034
6091
counterSet: string;
6035
6092
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */
6036
6093
cssFloat: string;
6037
- /**
6038
- * The **`cssText`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only.
6039
- *
6040
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText)
6041
- */
6042
- cssText: string;
6043
6094
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */
6044
6095
cursor: string;
6045
6096
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cx) */
@@ -6217,12 +6268,6 @@ interface CSSStyleDeclaration {
6217
6268
justifySelf: string;
6218
6269
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */
6219
6270
left: string;
6220
- /**
6221
- * The read-only property returns an integer that represents the number of style declarations in this CSS declaration block.
6222
- *
6223
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length)
6224
- */
6225
- readonly length: number;
6226
6271
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */
6227
6272
letterSpacing: string;
6228
6273
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/lighting-color) */
@@ -6413,12 +6458,6 @@ interface CSSStyleDeclaration {
6413
6458
pageBreakInside: string;
6414
6459
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */
6415
6460
paintOrder: string;
6416
- /**
6417
- * The **CSSStyleDeclaration.parentRule** read-only property returns a CSSRule that is the parent of this style block, e.g., a CSSStyleRule representing the style for a CSS selector.
6418
- *
6419
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule)
6420
- */
6421
- readonly parentRule: CSSRule | null;
6422
6461
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */
6423
6462
perspective: string;
6424
6463
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */
@@ -7099,42 +7138,11 @@ interface CSSStyleDeclaration {
7099
7138
zIndex: string;
7100
7139
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */
7101
7140
zoom: string;
7102
- /**
7103
- * The **CSSStyleDeclaration.getPropertyPriority()** method interface returns a string that provides all explicitly set priorities on the CSS property.
7104
- *
7105
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority)
7106
- */
7107
- getPropertyPriority(property: string): string;
7108
- /**
7109
- * The **CSSStyleDeclaration.getPropertyValue()** method interface returns a string containing the value of a specified CSS property.
7110
- *
7111
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue)
7112
- */
7113
- getPropertyValue(property: string): string;
7114
- /**
7115
- * The `CSSStyleDeclaration.item()` method interface returns a CSS property name from a CSSStyleDeclaration by index.
7116
- *
7117
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item)
7118
- */
7119
- item(index: number): string;
7120
- /**
7121
- * The **`CSSStyleDeclaration.removeProperty()`** method interface removes a property from a CSS style declaration object.
7122
- *
7123
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty)
7124
- */
7125
- removeProperty(property: string): string;
7126
- /**
7127
- * The **`CSSStyleDeclaration.setProperty()`** method interface sets a new value for a property on a CSS style declaration object.
7128
- *
7129
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty)
7130
- */
7131
- setProperty(property: string, value: string | null, priority?: string): void;
7132
- [index: number]: string;
7133
7141
}
7134
7142
7135
- declare var CSSStyleDeclaration : {
7136
- prototype: CSSStyleDeclaration ;
7137
- new(): CSSStyleDeclaration ;
7143
+ declare var CSSStyleProperties : {
7144
+ prototype: CSSStyleProperties ;
7145
+ new(): CSSStyleProperties ;
7138
7146
};
7139
7147
7140
7148
/**
@@ -7154,7 +7162,7 @@ interface CSSStyleRule extends CSSGroupingRule {
7154
7162
*
7155
7163
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
7156
7164
*/
7157
- get style(): CSSStyleDeclaration ;
7165
+ get style(): CSSStyleProperties ;
7158
7166
set style(cssText: string);
7159
7167
/**
7160
7168
* The **`styleMap`** read-only property of the which provides access to the rule's property-value pairs.
0 commit comments