setStyleTexts
suspend fun setStyleTexts(args: CSS.SetStyleTextsParameter, mode: CommandMode = CommandMode.DEFAULT): CSS.SetStyleTextsReturn
Applies specified style edits one after another in the given order.
suspend fun setStyleTexts(edits: List<CSS.StyleDeclarationEdit>, nodeForPropertySyntaxValidation: Int? = null): CSS.SetStyleTextsReturn
Applies specified style edits one after another in the given order.
Parameters
edits
No description
nodeForPropertySyntaxValidation
NodeId for the DOM node in whose context custom property declarations for registered properties should be validated. If omitted, declarations in the new rule text can only be validated statically, which may produce incorrect results if the declaration contains a var() for example.