Implement RemoveProperty, SetProperty, and supported property indices.

This commit is contained in:
Josh Matthews 2014-12-11 19:54:47 -05:00
parent acf86a65e4
commit 9d82e06e64
6 changed files with 173 additions and 70 deletions

View file

@ -9,23 +9,23 @@
*/
interface CSSStyleDeclaration {
[SetterThrows]
attribute DOMString cssText;
//[SetterThrows]
// attribute DOMString cssText;
readonly attribute unsigned long length;
getter DOMString item(unsigned long index);
DOMString getPropertyValue(DOMString property);
DOMString getPropertyPriority(DOMString property);
//DOMString getPropertyPriority(DOMString property);
[Throws]
void setProperty(DOMString property, [TreatNullAs=EmptyString] DOMString value,
[TreatNullAs=EmptyString] optional DOMString priority = "");
[Throws]
void setPropertyValue(DOMString property, [TreatNullAs=EmptyString] DOMString value);
[Throws]
void setPropertyPriority(DOMString property, [TreatNullAs=EmptyString] DOMString priority);
[Throws]
//[Throws]
//void setPropertyPriority(DOMString property, [TreatNullAs=EmptyString] DOMString priority);
DOMString removeProperty(DOMString property);
// Not implemented yet:
// readonly attribute CSSRule? parentRule;
// attribute DOMString cssFloat;
[SetterThrows]
attribute DOMString cssFloat;
};