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 StyleSheetList

The StyleSheetList interface represents a list of CSSStyleSheet objects. An instance of this object can be returned by Document.styleSheets.

MDN Reference

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

Indexable

Index
length: number

The length read-only property of the StyleSheetList interface returns the number of CSSStyleSheet objects in the collection.

MDN Reference

  • The item() method of the StyleSheetList interface returns a single CSSStyleSheet object.

    MDN Reference

    Parameters

    • index: number

    Returns CSSStyleSheet | null

Was this helpful?