summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-04-11 16:10:55 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-11 21:10:07 +0200
commit66618a666b09aa61aed3aa63493fd0e24ed3eef0 (patch)
treeefede87dd7b7d3204c3a2783f0f1d6bd7a1d4d73 /Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl
parent9ad9c72827b1cbfc408f489a100a3bf5f65a71bf (diff)
downloadserenity-66618a666b09aa61aed3aa63493fd0e24ed3eef0.zip
LibWeb: Implement CSSStyleDeclaration.{set,remove}Property close to spec
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
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl')
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl
index bce8af29f3..867d3bd1ed 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl
+++ b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl
@@ -6,6 +6,7 @@ interface CSSStyleDeclaration {
CSSOMString getPropertyValue(CSSOMString property);
- [CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value);
+ [CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, [LegacyNullToEmptyString] optional CSSOMString priority = "");
+ [CEReactions] CSSOMString removeProperty(CSSOMString property);
};