mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-01 11:57:19 +02:00
LibWeb: Implement CSSRule and CSSStyleDeclaration serialization
There are a handful of FIXME's here, but this seems generally good. Note that CSS *values* don't get serialized in a spec-compliant way since we currently rely on StyleValue::to_string() which is ad-hoc.
This commit is contained in:
@@ -24,6 +24,8 @@ public:
|
||||
virtual Optional<StyleProperty> property(PropertyID) const override;
|
||||
virtual bool set_property(PropertyID, StringView css_text) override;
|
||||
|
||||
virtual String serialized() const override;
|
||||
|
||||
private:
|
||||
explicit ResolvedCSSStyleDeclaration(DOM::Element&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user