Draft:Docs/Web/API/StyleSheet

NOTOC Template:APIRef("CSSOM") An object implementing the StyleSheet interface represents a single style sheet. CSS style sheets will further implement the more specialized Template:Domxref("CSSStyleSheet") interface. [1, 2]

Instance properties

Template:Domxref("StyleSheet.disabled")
A boolean value representing whether the current stylesheet has been applied or not.
Template:Domxref("StyleSheet.href") Template:ReadOnlyInline
Returns a string representing the location of the stylesheet.
Template:Domxref("StyleSheet.media") Template:ReadOnlyInline
Returns a Template:Domxref("MediaList") representing the intended destination medium for style information.
Template:Domxref("StyleSheet.ownerNode") Template:ReadOnlyInline
Returns a Template:Domxref("Node") associating this style sheet with the current document.
Template:Domxref("StyleSheet.parentStyleSheet") Template:ReadOnlyInline
Returns a StyleSheet including this one, if any; returns null if there aren't any.
Template:Domxref("StyleSheet.title") Template:ReadOnlyInline
Returns a string representing the advisory title of the current style sheet.
Template:Domxref("StyleSheet.type") Template:ReadOnlyInline
Returns a string representing the style sheet language for this style sheet. [3, 4, 5, 6, 7]

Specifications

Template:Specifications

Browser compatibility

Template:Compat [8]

See also


[1] [1](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet) [2] [2](https://github.com/mdn/content/blob/main/files/en-us/web/api/stylesheet/index.md?plain=1) [3] [3](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet) [4] [4](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet) [5] [5](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet) [6] [6](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/title) [7] [7](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/type) [8] [8](https://github.com/mdn/content/blob/main/files/en-us/web/api/cssstylesheet/index.md?plain=1)

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.