Skip to content

StyleSheet

Type class

Defines a class for an entire CSS style sheet.

Can be used to dynamically add CSS to the document.

Sources

This information about StyleSheet is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.

Inheritance

StyleSheet extends DisposerClass.

StyleSheet is not extended by any other symbol.

Properties

StyleSheet does not have any properties.

Methods

constructor(element: ShadowRoot | null,
text: string,
nonce: string
)

Returns StyleSheet

Constructor.

2 inherited items
dispose()

Returns voidInherited from DisposerClass

Disposes the object.

isDisposed()

Returns booleanInherited from DisposerClass

Checks if object is disposed.

Events

StyleSheet does not have any events.