Enum style::stylesheets::CssRule [] [src]

pub enum CssRule {
    Namespace(Arc<Locked<NamespaceRule>>),
    Import(Arc<Locked<ImportRule>>),
    Style(Arc<Locked<StyleRule>>),
    Media(Arc<Locked<MediaRule>>),
    FontFace(Arc<Locked<FontFaceRule>>),
    FontFeatureValues(Arc<Locked<FontFeatureValuesRule>>),
    CounterStyle(Arc<Locked<CounterStyleRule>>),
    Viewport(Arc<Locked<ViewportRule>>),
    Keyframes(Arc<Locked<KeyframesRule>>),
    Supports(Arc<Locked<SupportsRule>>),
    Page(Arc<Locked<PageRule>>),
    Document(Arc<Locked<DocumentRule>>),
}

A CSS rule.

TODO(emilio): Lots of spec links should be around.

Variants

Methods

impl CssRule
[src]

[src]

Returns the CSSOM rule type of this rule.

[src]

Parse a CSS rule.

Returns a parsed CSS rule and the final state of the parser.

Input state is None for a nested rule

Trait Implementations

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 Debug for CssRule
[src]

[src]

Formats the value using the given formatter. Read more

impl DeepCloneWithLock for CssRule
[src]

[src]

Deep clones this CssRule.

impl ToCssWithGuard for CssRule
[src]

[src]

Serialize self in CSS syntax, writing to dest, using the given lock guard.

[src]

Serialize self in CSS syntax using the given lock guard and return a string. Read more