1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 00:15:08 +00:00

LibWeb: Implement CSSStyleDeclaration.cssText

This commit is contained in:
Luke Wilde 2022-11-05 04:51:05 +00:00 committed by Andreas Kling
parent 8066a67da2
commit c247fefee7
5 changed files with 65 additions and 7 deletions

View file

@ -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()");
}
}