From 417ab62894bf453c30323ed99d264d432345348c Mon Sep 17 00:00:00 2001
From: Cameron McCormack
interface StyleValue {
- attribute DOMString cssString;
+ attribute DOMString cssText;
static (StyleValue or sequence<StyleValue>)? parse(DOMString property, DOMString cssText);
};
{{StyleValue}} objects are the base class of all CSS Values accessible via the Typed OM API.
-The cssString attribute provides a normalized
+The cssText attribute provides a normalized
representation (see ) of the value
contained by a {{StyleValue}} object.
@@ -229,7 +229,7 @@ keyword for a particular property. Property setters are required to enforce keyw
----------------------------------------------
-[Constructor(double), Constructor(DOMString cssString)]
+[Constructor(double), Constructor(DOMString cssText)]
interface NumberValue : StyleValue {
attribute double value;
};
@@ -303,12 +303,12 @@ interface LengthValue : StyleValue {
LengthValue subtract(LengthValue value); // can throw
LengthValue multiply(double value); // can throw
LengthValue divide(double value); // can throw
- static LengthValue parse(DOMString cssString);
+ static LengthValue parse(DOMString cssText);
static LengthValue fromValue(double value, LengthType type);
static LengthValue fromDictionary(CalcDictionary dictionary);
};
-[Constructor(DOMString cssString),
+[Constructor(DOMString cssText),
Constructor(LengthValue),
Constructor(CalcDictionary)
]
@@ -332,7 +332,7 @@ interface CalcLength : LengthValue {
};
// lengths that are *just* keywords don't become SimpleLengths or CalcLengths.
-[Constructor(DOMString cssString),
+[Constructor(DOMString cssText),
Constructor(LengthValue),
Constructor(double value, LengthType type)]
interface SimpleLength : LengthValue {
@@ -364,7 +364,7 @@ interface TransformValue : StyleValue {
};
interface TransformComponent {
- readonly attribute DOMString cssString;
+ readonly attribute DOMString cssText;
boolean is2DComponent();
Matrix asMatrix();
};
@@ -500,14 +500,14 @@ from the top edge of the container, expressed as a length.
Note that <
// "center bottom 10px"
-document.querySelector('.example').styleMap.get('background-position').cssString;
+document.querySelector('.example').styleMap.get('background-position').cssText;
// 50% - as a SimpleLength
document.querySelector('.example').styleMap.get('background-position').x;