1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

LibWeb: Support named CSS properties on CSSStyleDeclaration wrapper

Use the new CustomGet/CustomPut wrapper mechansim to intercept gets and
puts on CSSStyleDeclaration objects. This allows content to get and set
individual CSS properties from JavaScript. :^)
This commit is contained in:
Andreas Kling 2021-03-14 17:05:02 +01:00
parent ab23ef92b6
commit 4559faf8d8
4 changed files with 82 additions and 0 deletions

View file

@ -58,6 +58,8 @@ public:
String item(size_t index) const;
private:
friend class Bindings::CSSStyleDeclarationWrapper;
explicit CSSStyleDeclaration(Vector<StyleProperty>&&);
Vector<StyleProperty> m_properties;