struct Protocol::CSS::CSSMedia
- Protocol::CSS::CSSMedia
- Struct
- Value
- Object
Overview
CSS media rule descriptor.
Included Modules
- JSON::Serializable
Defined in:
protocol/css.crConstructors
Instance Method Summary
-
#media_list : Array(MediaQuery) | Nil
Array of media queries.
-
#range : SourceRange | Nil
The associated rule (@media or @import) header range in the enclosing stylesheet (if available).
-
#source : String
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.
-
#source_url : String | Nil
URL of the document containing the media query description.
-
#style_sheet_id : StyleSheetId | Nil
Identifier of the stylesheet containing this object (if exists).
-
#text : String
Media query text.
Constructor Detail
Instance Method Detail
The associated rule (@media or @import) header range in the enclosing stylesheet (if available).
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.
Identifier of the stylesheet containing this object (if exists).