Skip to content

[css-animations-1] CSSKeyframesRule should have index getter #7684

@rniwa

Description

@rniwa

Blink and WebKit has index getter on CSSKeyframesRule. For best interoperability, I recommend adding it to the spec.

See WebKit's IDL for example:

[
    Exposed=Window
] interface CSSKeyframesRule : CSSRule {
    attribute [AtomString] DOMString name;
    readonly attribute CSSRuleList cssRules;
    
    undefined insertRule(DOMString rule);
    undefined appendRule(DOMString rule);
    undefined deleteRule(DOMString key);
    CSSKeyframeRule? findRule(DOMString key);

    getter CSSKeyframeRule (unsigned long index);
};

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions