mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
LibWeb: Expose barebones CSSStyleDeclaration to JavaScript
You can now access an element's inline style via Element.style. The interface is not very capable yet though. :^)
This commit is contained in:
parent
0759f54bd3
commit
33e3f0c71f
Notes:
sideshowbarker
2024-07-18 21:23:52 +09:00
Author: https://github.com/awesomekling
Commit: 33e3f0c71f
9 changed files with 43 additions and 2 deletions
|
@ -92,6 +92,8 @@ public:
|
|||
|
||||
const CSS::CSSStyleDeclaration* inline_style() const { return m_inline_style; }
|
||||
|
||||
NonnullRefPtr<CSS::CSSStyleDeclaration> style_for_bindings();
|
||||
|
||||
// FIXME: innerHTML also appears on shadow roots. https://w3c.github.io/DOM-Parsing/#dom-innerhtml
|
||||
String inner_html() const;
|
||||
void set_inner_html(StringView);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue