Enum css::domain::CssRule
[−]
[src]
pub enum CssRule { CounterStyle(CounterStyleAtRule), Document(DocumentAtRule), FontFace(FontFaceAtRule), FontFeatureValues(FontFeatureValuesAtRule), Import(ImportAtRule), Keyframes(KeyframesAtRule), Media(MediaAtRule), Namespace(NamespaceAtRule), Page(PageAtRule), Style(StyleRule), Supports(SupportsAtRule), Viewport(ViewportAtRule), }
No Charset here, CSSCharsetRule has been removed from CSSOM (https://drafts.csswg.org/cssom/#changes-from-5-december-2013) and Edge doesn't support it
Variants
CounterStyle(CounterStyleAtRule)
@counter-style
Document(DocumentAtRule)
@document
FontFace(FontFaceAtRule)
@font-face
FontFeatureValues(FontFeatureValuesAtRule)
@font-feature-values
Import(ImportAtRule)
@import
Keyframes(KeyframesAtRule)
@keyframes
Media(MediaAtRule)
@media
Namespace(NamespaceAtRule)
@namespace
Page(PageAtRule)
@page
Style(StyleRule)
Style rules, eg div { width: 10%; }
Supports(SupportsAtRule)
@supports
Viewport(ViewportAtRule)
@viewport
Methods
impl CssRule
[src]
fn rule_type(&self) -> CssRuleType
[src]
Returns the CSSOM rule type of this rule.
Trait Implementations
impl Debug for CssRule
[src]
impl Clone for CssRule
[src]
fn clone(&self) -> CssRule
[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