struct Protocol::CSS::CSSMedia

Overview

CSS media rule descriptor.

Included Modules

Defined in:

protocol/css.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def media_list : Array(MediaQuery) | Nil #

Array of media queries.


[View source]
def range : SourceRange | Nil #

The associated rule (@media or @import) header range in the enclosing stylesheet (if available).


[View source]
def 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.


[View source]
def source_url : String | Nil #

URL of the document containing the media query description.


[View source]
def style_sheet_id : StyleSheetId | Nil #

Identifier of the stylesheet containing this object (if exists).


[View source]
def text : String #

Media query text.


[View source]