CSS.CSSMedia

CSS media rule descriptor.

{
  "id": "CSSMedia",
  "type": "object",
  "properties": [
    {
      "name": "text",
      "type": "string",
      "description": "Media query text."
    },
    {
      "name": "source",
      "type": "string",
      "enum": [
        "mediaRule",
        "importRule",
        "linkedSheet",
        "inlineSheet"
      ],
      "description": "Source of the media query: \"mediaRule\" if specified by a @media rule, \"importRule\" if specified by an @import rule, \"linkedSheet\" if specified by a \"media\" attribute in a linked stylesheet's LINK tag, \"inlineSheet\" if specified by a \"media\" attribute in an inline stylesheet's STYLE tag."
    },
    {
      "name": "sourceURL",
      "type": "string",
      "optional": true,
      "description": "URL of the document containing the media query description."
    },
    {
      "name": "range",
      "$ref": "SourceRange",
      "optional": true,
      "description": "The associated rule (@media or @import) header range in the enclosing stylesheet (if available)."
    },
    {
      "name": "parentStyleSheetId",
      "$ref": "StyleSheetId",
      "optional": true,
      "description": "Identifier of the stylesheet containing this object (if exists)."
    },
    {
      "name": "mediaList",
      "type": "array",
      "items": {
        "$ref": "MediaQuery"
      },
      "optional": true,
      "hidden": true,
      "description": "Array of media queries."
    }
  ],
  "description": "CSS media rule descriptor."
}