AddRuleParameter

@Serializable
data class AddRuleParameter(val styleSheetId: String, val ruleText: String, val location: CSS.SourceRange, val nodeForPropertySyntaxValidation: Int? = null)

Constructors

Link copied to clipboard
constructor(styleSheetId: String, ruleText: String, location: CSS.SourceRange, nodeForPropertySyntaxValidation: Int? = null)

Properties

Link copied to clipboard

Text position of a new rule in the target style sheet.

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.

Link copied to clipboard

The text of a new rule.

Link copied to clipboard

The css style sheet identifier where a new rule should be inserted.