W3cubDocs

/Web APIs

StyleSheet

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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
StyleSheet 1 12 1 9 ≤12.1 1 4.4 18 4 ≤12.1 1 1.0
disabled 1 12 1 9 ≤12.1 1 4.4 18 4 ≤12.1 1 1.0
href 1 12 1 9 ≤12.1 1 4.4 18 4 ≤12.1 1 1.0
media 1 12 1 9 ≤12.1 1 4.4 18 4 ≤12.1 1 1.0
ownerNode 1 12 1 9 ≤12.1 1 4.4 18 4 ≤12.1 1 1.0
parentStyleSheet 1 12 1 9 ≤12.1 1 4.4 18 4 ≤12.1 1 1.0
title 1 12 1 9 ≤12.1 1 4.4 18 4 ≤12.1 1 1.0
type 1 12 1 9 ≤12.1 1 4.4 18 4 ≤12.1 1 1.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet