mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 16:02:53 +00:00
LibWeb: Implement CSSStyleDeclaration.cssText
This commit is contained in:
parent
8066a67da2
commit
c247fefee7
Notes:
sideshowbarker
2024-07-17 04:42:50 +09:00
Author: https://github.com/Lubrsi
Commit: c247fefee7
Pull-request: https://github.com/SerenityOS/serenity/pull/15964
Reviewed-by: https://github.com/awesomekling
5 changed files with 65 additions and 7 deletions
|
@ -570,4 +570,11 @@ String ResolvedCSSStyleDeclaration::serialized() const
|
|||
return String::empty();
|
||||
}
|
||||
|
||||
// https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-csstext
|
||||
WebIDL::ExceptionOr<void> ResolvedCSSStyleDeclaration::set_css_text(StringView)
|
||||
{
|
||||
// 1. If the computed flag is set, then throw a NoModificationAllowedError exception.
|
||||
return WebIDL::NoModificationAllowedError::create(realm(), "Cannot modify properties in result of getComputedStyle()");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue