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
text: Cow<'a, str>
Media query text.
source: CssMediaSource
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: Option<Cow<'a, str>>
URL of the document containing the media query description.
range: Option<SourceRange>
The associated rule (@media or @import) header range in the enclosing stylesheet (if available).
style_sheet_id: Option<StyleSheetId<'a>>
Identifier of the stylesheet containing this object (if exists).
media_list: Option<Vec<MediaQuery<'a>>>
[Experimental] Array of media queries.
Trait Implementations
impl<'a> Clone for CssMedia<'a>
[src]
fn clone(&self) -> CssMedia<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more