CSS.CSSRule

CSS rule representation.

{
  "id": "CSSRule",
  "type": "object",
  "properties": [
    {
      "name": "styleSheetId",
      "$ref": "StyleSheetId",
      "optional": true,
      "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from."
    },
    {
      "name": "selectorList",
      "$ref": "SelectorList",
      "description": "Rule selector data."
    },
    {
      "name": "origin",
      "$ref": "StyleSheetOrigin",
      "description": "Parent stylesheet's origin."
    },
    {
      "name": "style",
      "$ref": "CSSStyle",
      "description": "Associated style declaration."
    },
    {
      "name": "media",
      "type": "array",
      "items": {
        "$ref": "CSSMedia"
      },
      "optional": true,
      "description": "Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards."
    }
  ],
  "description": "CSS rule representation."
}