StyleSheet

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015.

An object implementing the StyleSheet interface represents a single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.

Instance properties

StyleSheet.disabled

A boolean value representing whether the current stylesheet has been applied or not.

StyleSheet.href Read only

Returns a string representing the location of the stylesheet.

StyleSheet.media Read only

Returns a MediaList representing the intended destination medium for style information.

StyleSheet.ownerNode Read only

Returns a Node associating this style sheet with the current document.

StyleSheet.parentStyleSheet Read only

Returns a StyleSheet including this one, if any; returns null if there aren't any.

StyleSheet.title Read only

Returns a string representing the advisory title of the current style sheet.

StyleSheet.type Read only

Returns a string representing the style sheet language for this style sheet.

Specifications

Specification
CSS Object Model (CSSOM)
# the-stylesheet-interface

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
StyleSheet
disabled
href
media
ownerNode
parentStyleSheet
title
type

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

See also