For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface CSSRuleList

A CSSRuleList represents an ordered collection of read-only CSSRule objects.

MDN Reference

interface CSSRuleList {
    length: number;
    "[iterator]"(): ArrayIterator<CSSRule>;
    item(index: number): CSSRule | null;
    [index: number]: CSSRule;
}

Indexable

Index
length: number

The length property of the CSSRuleList interface returns the number of CSSRule objects in the list.

MDN Reference

  • The item() method of the CSSRuleList interface returns the CSSRule object at the specified index or null if the specified index doesn't exist.

    MDN Reference

    Parameters

    • index: number

    Returns CSSRule | null

Was this helpful?