Struct style::stylesheets::keyframes_rule::KeyframesRule [] [src]

pub struct KeyframesRule {
    pub name: KeyframesName,
    pub keyframes: Vec<Arc<Locked<Keyframe>>>,
    pub vendor_prefix: Option<VendorPrefix>,
    pub source_location: SourceLocation,
}

A @keyframes rule.

Fields

The name of the current animation.

The keyframes specified for this CSS rule.

Vendor prefix type the @keyframes has.

The line and column of the rule's source code.

Methods

impl KeyframesRule
[src]

[src]

Returns the index of the last keyframe that matches the given selector. If the selector is not valid, or no keyframe is found, returns None.

Related spec: https://drafts.csswg.org/css-animations-1/#interface-csskeyframesrule-findrule

Trait Implementations

impl Debug for KeyframesRule
[src]

[src]

Formats the value using the given formatter. Read more

impl ToCssWithGuard for KeyframesRule
[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

impl DeepCloneWithLock for KeyframesRule
[src]

[src]

Deep clones this object.