mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09: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:
parent
c953103d2f
commit
3db847c64a
Notes:
sideshowbarker
2024-07-18 03:13:22 +09:00
Author: https://github.com/awesomekling
Commit: 3db847c64a
14 changed files with 461 additions and 9 deletions
|
@ -24,6 +24,8 @@ public:
|
|||
size_t insert_rule(StringView const& rule, size_t index = 0);
|
||||
void delete_rule(size_t index);
|
||||
|
||||
virtual String serialized() const;
|
||||
|
||||
protected:
|
||||
explicit CSSGroupingRule(NonnullRefPtrVector<CSSRule>&&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue