@@ -40,14 +40,14 @@ Issue: is it possible to amalgamate this API with value objects once they're spe
4040
4141<pre class='idl'>
4242interface StyleValue {
43- attribute DOMString cssString ;
43+ attribute DOMString cssText ;
4444 static (StyleValue or sequence<StyleValue>)? parse(DOMString property, DOMString cssText);
4545};
4646</pre>
4747
4848{{StyleValue}} objects are the base class of all CSS Values accessible via the Typed OM API.
4949
50- The <dfn attribute for=StyleValue>cssString </dfn> attribute provides a normalized
50+ The <dfn attribute for=StyleValue>cssText </dfn> attribute provides a normalized
5151representation (see <a section href="#stylevalue-normalization"></a> ) of the value
5252contained by a {{StyleValue}} object.
5353
@@ -229,7 +229,7 @@ keyword for a particular property. Property setters are required to enforce keyw
229229----------------------------------------------
230230
231231<pre class='idl'>
232- [Constructor(double), Constructor(DOMString cssString )]
232+ [Constructor(double), Constructor(DOMString cssText )]
233233interface NumberValue : StyleValue {
234234 attribute double value;
235235};
@@ -303,12 +303,12 @@ interface LengthValue : StyleValue {
303303 LengthValue subtract(LengthValue value); // can throw
304304 LengthValue multiply(double value); // can throw
305305 LengthValue divide(double value); // can throw
306- static LengthValue parse(DOMString cssString );
306+ static LengthValue parse(DOMString cssText );
307307 static LengthValue fromValue(double value, LengthType type);
308308 static LengthValue fromDictionary(CalcDictionary dictionary);
309309};
310310
311- [Constructor(DOMString cssString ),
311+ [Constructor(DOMString cssText ),
312312 Constructor(LengthValue),
313313 Constructor(CalcDictionary)
314314]
@@ -332,7 +332,7 @@ interface CalcLength : LengthValue {
332332};
333333
334334// lengths that are *just* keywords don't become SimpleLengths or CalcLengths.
335- [Constructor(DOMString cssString ),
335+ [Constructor(DOMString cssText ),
336336 Constructor(LengthValue),
337337 Constructor(double value, LengthType type)]
338338interface SimpleLength : LengthValue {
@@ -364,7 +364,7 @@ interface TransformValue : StyleValue {
364364};
365365
366366interface TransformComponent {
367- readonly attribute DOMString cssString ;
367+ readonly attribute DOMString cssText ;
368368 boolean is2DComponent();
369369 Matrix asMatrix();
370370};
@@ -500,14 +500,14 @@ from the top edge of the container, expressed as a length.
500500
501501Note that <<position>> productions accept a complicated combination of keywords
502502and values. When specified as such in a stylesheet or via the untyped CSSOM,
503- the <a attribute for=StyleValue>cssString </a> attribute will contain the specified
503+ the <a attribute for=StyleValue>cssText </a> attribute will contain the specified
504504string. However, this string is normalized as two Lengths into the <a attribute
505505for=PositionValue>x</a> and <a attribute for=PositionValue>y</a> values of the
506506{{StyleValue}} object.
507507
508508New {{PositionValue}} objects can only be constructed via pairs of lengths, and
509509will only return the direct serialization of these lengths in the
510- <a attribute for=StyleValue>cssString </a> attribute.
510+ <a attribute for=StyleValue>cssText </a> attribute.
511511
512512<div class='example'>
513513
@@ -523,7 +523,7 @@ Will produce the following behavior:
523523
524524<pre class='lang-javascript'>
525525// "center bottom 10px"
526- document.querySelector('.example' ).styleMap.get('background-position' ).cssString ;
526+ document.querySelector('.example' ).styleMap.get('background-position' ).cssText ;
527527
528528// 50% - as a SimpleLength
529529document.querySelector('.example' ).styleMap.get('background-position' ).x;
0 commit comments