pl.wendigo.chrome.api.css / AddRuleRequest

AddRuleRequest

data class AddRuleRequest (source)

Represents request frame that can be used with CSS#addRule operation call.

Inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the position specified by location.

Link
CSS#addRule method documentation.

See Also

CSSOperations.addRule

Constructors

<init>

AddRuleRequest(styleSheetId: StyleSheetId, ruleText: String, location: SourceRange)

Represents request frame that can be used with CSS#addRule operation call.

Properties

location

val location: SourceRange

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

ruleText

val ruleText: String

The text of a new rule.

styleSheetId

val styleSheetId: StyleSheetId

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