Struct cdp::css::CssMedia [] [src]

pub struct CssMedia<'a> {
    pub text: Cow<'a, str>,
    pub source: CssMediaSource,
    pub source_url: Option<Cow<'a, str>>,
    pub range: Option<SourceRange>,
    pub style_sheet_id: Option<StyleSheetId<'a>>,
    pub media_list: Option<Vec<MediaQuery<'a>>>,
}

[Experimental] CSS media rule descriptor.

Fields

Media query text.

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.

URL of the document containing the media query description.

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

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

[Experimental] Array of media queries.

Trait Implementations

impl<'a> Clone for CssMedia<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for CssMedia<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for CssMedia<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.