Struct chromiumoxide_fork::cdp::browser_protocol::css::CssRule
source · pub struct CssRule {
pub style_sheet_id: Option<StyleSheetId>,
pub selector_list: SelectorList,
pub origin: StyleSheetOrigin,
pub style: CssStyle,
pub media: Option<Vec<CssMedia, Global>>,
pub container_queries: Option<Vec<CssContainerQuery, Global>>,
pub supports: Option<Vec<CssSupports, Global>>,
pub layers: Option<Vec<CssLayer, Global>>,
pub scopes: Option<Vec<CssScope, Global>>,
}Expand description
CSS rule representation. CSSRule
Fields§
§style_sheet_id: Option<StyleSheetId>The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
selector_list: SelectorListRule selector data.
origin: StyleSheetOriginParent stylesheet’s origin.
style: CssStyleAssociated style declaration.
media: Option<Vec<CssMedia, Global>>Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.
container_queries: Option<Vec<CssContainerQuery, Global>>Container query list array (for rules involving container queries). The array enumerates container queries starting with the innermost one, going outwards.
supports: Option<Vec<CssSupports, Global>>@supports CSS at-rule array. The array enumerates @supports at-rules starting with the innermost one, going outwards.
layers: Option<Vec<CssLayer, Global>>Cascade layer array. Contains the layer hierarchy that this rule belongs to starting with the innermost layer and going outwards.
scopes: Option<Vec<CssScope, Global>>@scope CSS at-rule array. The array enumerates @scope at-rules starting with the innermost one, going outwards.