The StyleSheetList
interface represents a list of CSSStyleSheet
objects. An instance of this object can be returned by Document.styleSheets
.
It is an array-like object but can't be iterated over using Array
methods. However it can be iterated over in a standard for
loop over its indices, or converted to an Array
.
Note: Typically list interfaces like StyleSheetList
wrap around Array
types, so you can use Array
methods on them. This is not the case here for historical reasons. However, you can convert StyleSheetList
to an Array
in order to use those methods (see the example below).