ladybird/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl
Andreas Kling 0ab31d8c84 LibWeb: Support simplest form of CSSStyleDeclaration.setProperty()
This patch adds the setProperty(name, value) API to CSSStyleDeclaration.
Setting an invalid or empty value will cause the property to be removed
from the declaration.

Note that this only works on mutable declarations (i.e element.style)
and not on resolved declarations (i.e window.getComputedStyle(element)).
2021-09-26 19:07:03 +02:00

11 lines
331 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);
};