CSS.CSSMedia

CSS media query 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": "sourceLine",
      "type": "integer",
      "optional": true,
      "description": "Line in the document containing the media query (not defined for the \"stylesheet\" source)."
    }
  ],
  "description": "CSS media query descriptor."
}