1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 10:18:15 +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:
Andreas Kling 2021-10-01 19:57:45 +02:00
parent c953103d2f
commit 3db847c64a
Notes: sideshowbarker 2024-07-18 03:13:22 +09:00
14 changed files with 461 additions and 9 deletions

View file

@ -12,4 +12,17 @@ CSSRule::~CSSRule()
{
}
// https://drafts.csswg.org/cssom/#dom-cssrule-csstext
String CSSRule::css_text() const
{
// The cssText attribute must return a serialization of the CSS rule.
return serialized();
}
// https://drafts.csswg.org/cssom/#dom-cssrule-csstext
void CSSRule::set_css_text(StringView)
{
// On setting the cssText attribute must do nothing.
}
}