Skip to main content

ADD_RULE

Constant ADD_RULE 

Source
pub const ADD_RULE: &str = "CSS.addRule";
Expand description

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

Parameters:

  • styleSheetId: DOM.StyleSheetId
  • ruleText: string
  • location: SourceRange
  • nodeForPropertySyntaxValidation: DOM.NodeId (optional)

Returns: rule