Struct cdp::css::CssRule [] [src]

pub struct CssRule<'a> {
    pub style_sheet_id: Option<StyleSheetId<'a>>,
    pub selector_list: SelectorList<'a>,
    pub origin: StyleSheetOrigin,
    pub style: CssStyle<'a>,
    pub media: Option<Vec<CssMedia<'a>>>,
}

[Experimental] CSS rule representation.

Fields

The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.

Rule selector data.

Parent stylesheet's origin.

Associated style declaration.

Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.

Trait Implementations

impl<'a> Clone for CssRule<'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 CssRule<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for CssRule<'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 !=.