W3cubDocs

/DOM

StyleSheet

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

Properties

StyleSheet.disabled
Is a Boolean representing whether the current stylesheet has been applied or not.
StyleSheet.href Read only
Returns a DOMString 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 DOMString representing the advisory title of the current style sheet.
StyleSheet.typeRead only
Returns a DOMString representing the style sheet language for this style sheet.

Specifications

Browser compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 1 ? Yes ? Yes ?
disabled 1 ? Yes ? Yes ?
href 1 ? Yes ? Yes ?
media 1 ? Yes ? Yes ?
ownerNode 1 ? Yes ? Yes ?
parentStyleSheet 1 ? Yes ? Yes ?
title 1 ? Yes ? Yes ?
type 1 ? Yes ? Yes ?
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support Yes Yes ? Yes Yes ? ?
disabled Yes Yes ? Yes Yes ? ?
href Yes Yes ? Yes Yes ? ?
media Yes Yes ? Yes Yes ? ?
ownerNode Yes Yes ? Yes Yes ? ?
parentStyleSheet Yes Yes ? Yes Yes ? ?
title Yes Yes ? Yes Yes ? ?
type Yes Yes ? Yes Yes ? ?

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet