diff options
author | Simon Wanner <simon+git@skyrising.xyz> | 2023-03-20 19:31:13 +0100 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-03-20 20:37:40 -0400 |
commit | 03c225b02309872398f977c9a25cc0ea75aff77b (patch) | |
tree | 2f3d01d69d3c87e14c0a7267d227cbfb2b09067d /Userland/Libraries/LibWeb/CSS/ElementCSSInlineStyle.idl | |
parent | 63ca149be546d9871f295b2bafae6812a0583c35 (diff) | |
download | serenity-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.idl | 6 |
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; +}; |