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)).
This commit is contained in:
Andreas Kling 2021-09-26 19:06:17 +02:00
commit 0ab31d8c84
Notes: sideshowbarker 2024-07-18 03:25:41 +09:00
4 changed files with 19 additions and 3 deletions

View file

@ -6,4 +6,6 @@ interface CSSStyleDeclaration {
CSSOMString getPropertyValue(CSSOMString property);
[CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value);
};