SetStyleTextsRequest

@Serializable
data class SetStyleTextsRequest(val edits: List<StyleDeclarationEdit>, val nodeForPropertySyntaxValidation: NodeId? = null)

Request object containing input parameters for the CSSDomain.setStyleTexts command.

Constructors

Link copied to clipboard
constructor(edits: List<StyleDeclarationEdit>, nodeForPropertySyntaxValidation: NodeId? = null)

Types

Link copied to clipboard
class Builder(val edits: List<StyleDeclarationEdit>)

A builder for SetStyleTextsRequest, which allows setting the optional parameters of the CSSDomain.setStyleTexts command via a lambda.

Properties

Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard

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.