CSSRuleList

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

MDN Reference

Properties

Link copied to clipboard
open override val length: Int

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

Functions

Link copied to clipboard
open operator fun get(index: Int): CSSRule
open operator fun get(key: Symbol.iterator): () -> JsIterator<CSSRule>
Link copied to clipboard
fun item(index: Int): CSSRule?

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

Link copied to clipboard
open inline operator fun iterator(): Iterator<CSSRule>