summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/ElementCSSInlineStyle.idl
diff options
context:
space:
mode:
authorSimon Wanner <simon+git@skyrising.xyz>2023-03-20 19:31:13 +0100
committerTim Flynn <trflynn89@pm.me>2023-03-20 20:37:40 -0400
commit03c225b02309872398f977c9a25cc0ea75aff77b (patch)
tree2f3d01d69d3c87e14c0a7267d227cbfb2b09067d /Userland/Libraries/LibWeb/CSS/ElementCSSInlineStyle.idl
parent63ca149be546d9871f295b2bafae6812a0583c35 (diff)
downloadserenity-03c225b02309872398f977c9a25cc0ea75aff77b.zip
LibWeb: Move Element.prototype.style to ElementCSSInlineStyle mixin
Also adds the `PutForwards` extended attribute allowing setting the style property.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/ElementCSSInlineStyle.idl')
-rw-r--r--Userland/Libraries/LibWeb/CSS/ElementCSSInlineStyle.idl6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/ElementCSSInlineStyle.idl b/Userland/Libraries/LibWeb/CSS/ElementCSSInlineStyle.idl
new file mode 100644
index 0000000000..15147bad4a
--- /dev/null
+++ b/Userland/Libraries/LibWeb/CSS/ElementCSSInlineStyle.idl
@@ -0,0 +1,6 @@
+#import <CSS/CSSStyleDeclaration.idl>
+
+// https://w3c.github.io/csswg-drafts/cssom/#elementcssinlinestyle
+interface mixin ElementCSSInlineStyle {
+ [SameObject, PutForwards=cssText, ImplementedAs=style_for_bindings] readonly attribute CSSStyleDeclaration style;
+};