mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
LibWeb: Implement CSSStyleDeclaration.cssText
This commit is contained in:
committed by
Andreas Kling
parent
8066a67da2
commit
c247fefee7
Notes:
sideshowbarker
2024-07-17 04:42:50 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/c247fefee7 Pull-request: https://github.com/SerenityOS/serenity/pull/15964 Reviewed-by: https://github.com/awesomekling
@@ -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()");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user