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

@counter-style

@document

@font-face

@font-feature-values

@import

@keyframes

@media

@namespace

@page

Style rules, eg div { width: 10%; }

@supports

@viewport

Methods

impl CssRule
[src]

[src]

Returns the CSSOM rule type of this rule.

Trait Implementations

impl Debug for CssRule
[src]

[src]

Formats the value using the given formatter.

impl Clone for CssRule
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl ToCss for CssRule
[src]

[src]

[src]

Serialize self in CSS syntax and return a string. Read more