mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibWeb: Implement CSSStyleDeclaration.cssText
This commit is contained in:
committed by
Andreas Kling
parent
8066a67da2
commit
c247fefee7
@@ -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