mirror of
https://github.com/servo/servo
synced 2026-04-30 19:37:43 +02:00
Implement RemoveProperty, SetProperty, and supported property indices.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user