CSS.CSSRule

CSS rule representation.

{
  "id": "CSSRule",
  "type": "object",
  "properties": [
    {
      "name": "ruleId",
      "$ref": "CSSRuleId",
      "optional": true,
      "description": "The CSS rule identifier (absent for user agent stylesheet and user-specified stylesheet rules)."
    },
    {
      "name": "selectorList",
      "$ref": "SelectorList",
      "description": "Rule selector data."
    },
    {
      "name": "sourceURL",
      "type": "string",
      "optional": true,
      "description": "Parent stylesheet resource URL (for regular rules)."
    },
    {
      "name": "sourceLine",
      "type": "integer",
      "description": "Line ordinal of the rule selector start character in the resource."
    },
    {
      "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."
}