mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 08:18:55 +00:00
LibWeb: Move Element.prototype.style to ElementCSSInlineStyle mixin
Also adds the `PutForwards` extended attribute allowing setting the style property.
This commit is contained in:
parent
63ca149be5
commit
03c225b023
Notes:
sideshowbarker
2024-07-16 23:23:26 +09:00
Author: https://github.com/skyrising
Commit: 03c225b023
Pull-request: https://github.com/SerenityOS/serenity/pull/17949
Reviewed-by: https://github.com/trflynn89 ✅
4 changed files with 11 additions and 3 deletions
6
Userland/Libraries/LibWeb/CSS/ElementCSSInlineStyle.idl
Normal file
6
Userland/Libraries/LibWeb/CSS/ElementCSSInlineStyle.idl
Normal file
|
@ -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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue