@@ -79,22 +79,6 @@ The <dfn method for=CSSStyleValue>parse(DOMString <var>property</var>, DOMString
79
79
method attempts to parse <var> cssText</var> as a valid {{CSSStyleValue}} or sequence<{{CSSStyleValue}} > for
80
80
<var> property</var> , returning null on failure.
81
81
82
- {{CSSTokenStreamValue}} objects {#tokenstreamvalue-objects}
83
- ----------------------------------------------
84
-
85
- <pre class='idl'>
86
- interface CSSTokenStreamValue : CSSStyleValue {
87
- iterable<(DOMString or CSSVariableReferenceValue)>;
88
- };
89
-
90
- interface CSSVariableReferenceValue {
91
- attribute DOMString variable;
92
- attribute CSSTokenStreamValue fallback;
93
- };
94
- </pre>
95
-
96
- {{CSSTokenStreamValue}} objects represent values that reference custom properties. They represent a list of string fragments and variable references.
97
-
98
82
The {{StylePropertyMap}} {#the-stylepropertymap}
99
83
================================================
100
84
@@ -234,6 +218,22 @@ The value for a given property is the last valid value provided in the string.
234
218
{{CSSStyleValue}} subclasses {#stylevalue-subclasses}
235
219
==================================================
236
220
221
+ {{CSSTokenStreamValue}} objects {#tokenstreamvalue-objects}
222
+ ----------------------------------------------
223
+
224
+ <pre class='idl'>
225
+ interface CSSTokenStreamValue : CSSStyleValue {
226
+ iterable<(DOMString or CSSVariableReferenceValue)>;
227
+ };
228
+
229
+ interface CSSVariableReferenceValue {
230
+ readonly attribute DOMString variable;
231
+ readonly attribute CSSTokenStreamValue fallback;
232
+ };
233
+ </pre>
234
+
235
+ {{CSSTokenStreamValue}} objects represent values that reference custom properties. They represent a list of string fragments and variable references.
236
+
237
237
{{CSSKeywordValue}} objects {#keywordvalue-objects}
238
238
------------------------------------------------
239
239
@@ -254,7 +254,7 @@ keyword for a particular property. Property setters are required to enforce keyw
254
254
<pre class='idl'>
255
255
[Constructor(double), Constructor(DOMString cssText)]
256
256
interface CSSNumberValue : CSSStyleValue {
257
- attribute double value;
257
+ readonly attribute double value;
258
258
};
259
259
</pre>
260
260
@@ -331,22 +331,22 @@ interface CSSLengthValue : CSSStyleValue {
331
331
Constructor(CSSCalcDictionary)
332
332
]
333
333
interface CSSCalcLength : CSSLengthValue {
334
- attribute double? px;
335
- attribute double? percent;
336
- attribute double? em;
337
- attribute double? ex;
338
- attribute double? ch;
339
- attribute double? rem;
340
- attribute double? vw;
341
- attribute double? vh;
342
- attribute double? vmin;
343
- attribute double? vmax;
344
- attribute double? cm;
345
- attribute double? mm;
346
- attribute double? q;
347
- attribute double? in;
348
- attribute double? pc;
349
- attribute double? pt;
334
+ readonly attribute double? px;
335
+ readonly attribute double? percent;
336
+ readonly attribute double? em;
337
+ readonly attribute double? ex;
338
+ readonly attribute double? ch;
339
+ readonly attribute double? rem;
340
+ readonly attribute double? vw;
341
+ readonly attribute double? vh;
342
+ readonly attribute double? vmin;
343
+ readonly attribute double? vmax;
344
+ readonly attribute double? cm;
345
+ readonly attribute double? mm;
346
+ readonly attribute double? q;
347
+ readonly attribute double? in;
348
+ readonly attribute double? pc;
349
+ readonly attribute double? pt;
350
350
};
351
351
352
352
// lengths that are *just* keywords don't become CSSSimpleLengths or CSSCalcLengths.
@@ -355,7 +355,7 @@ interface CSSCalcLength : CSSLengthValue {
355
355
Constructor(CSSLengthValue),
356
356
Constructor(double value, LengthType type)]
357
357
interface CSSSimpleLength : CSSLengthValue {
358
- attribute double value;
358
+ readonly attribute double value;
359
359
readonly attribute LengthType type;
360
360
};
361
361
</pre>
0 commit comments