CSS.addRule

Creates a new empty rule with the given selector in a stylesheet with given styleSheetId.

{
  "name": "addRule",
  "parameters": [
    {
      "name": "styleSheetId",
      "$ref": "StyleSheetId"
    },
    {
      "name": "selector",
      "type": "string"
    }
  ],
  "returns": [
    {
      "name": "rule",
      "$ref": "CSSRule",
      "description": "The newly created rule."
    }
  ],
  "description": "Creates a new empty rule with the given selector in a stylesheet with given styleSheetId."
}