
We already had setProperty() but it was full of ad-hoc idiosyncracies. This patch aligns setProperty() with the CSSOM spec and also implements removeProperty() since that's actually needed by setProperty() now. Some things fixed by this: - We now support the "priority" parameter to setProperty() - Element "style" attributes now update to reflect CSSOM mutations
12 lines
461 B
Text
12 lines
461 B
Text
[CustomGet,CustomSet,CustomHasProperty]
|
|
interface CSSStyleDeclaration {
|
|
|
|
readonly attribute unsigned long length;
|
|
CSSOMString item(unsigned long index);
|
|
|
|
CSSOMString getPropertyValue(CSSOMString property);
|
|
|
|
[CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, [LegacyNullToEmptyString] optional CSSOMString priority = "");
|
|
[CEReactions] CSSOMString removeProperty(CSSOMString property);
|
|
|
|
};
|