aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/stylesheet/index.html
blob: 53e9229461b8a27ac44f8c6eac3dd2880af05339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
title: StyleSheet
slug: Web/API/StyleSheet
translation_of: Web/API/StyleSheet
---
<div>{{APIRef("CSSOM")}}</div>

<p class="summary">An object implementing the <code>StyleSheet</code> interface represents a single style sheet. CSS style sheets will further implement the more specialized {{domxref("CSSStyleSheet")}} interface.</p>

<h2 id="Properties" name="Properties">Properties</h2>

<dl>
 <dt>{{domxref("StyleSheet.disabled")}}</dt>
 <dd>Is a {{domxref("Boolean")}} representing whether the current stylesheet has been applied or not.</dd>
 <dt>{{domxref("StyleSheet.href")}} {{readonlyInline}}</dt>
 <dd>Returns a {{domxref("DOMString")}} representing the location of the stylesheet.</dd>
 <dt>{{domxref("StyleSheet.media")}} {{readonlyInline}}</dt>
 <dd>Returns a {{domxref("MediaList")}} representing the intended destination medium for style information.</dd>
 <dt>{{domxref("StyleSheet.ownerNode")}} {{readonlyInline}}</dt>
 <dd>Returns a {{domxref("Node")}} associating this style sheet with the current document.</dd>
 <dt>{{domxref("StyleSheet.parentStyleSheet")}} {{readonlyInline}}</dt>
 <dd>Returns a {{domxref("StyleSheet")}} including this one, if any; returns <code>null</code> if there aren't any.</dd>
 <dt>{{domxref("StyleSheet.title")}} {{readonlyInline}}</dt>
 <dd>Returns a {{domxref("DOMString")}} representing the advisory title of the current style sheet.</dd>
 <dt>{{domxref("StyleSheet.type")}}{{readonlyInline}}</dt>
 <dd>Returns a {{domxref("DOMString")}} representing the style sheet language for this style sheet.</dd>
</dl>

<h2 id="Specification" name="Specification">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{ SpecName('CSSOM', '#stylesheet', 'StyleSheet') }}</td>
   <td>{{ Spec2('CSSOM') }}</td>
   <td>No change from {{ SpecName('DOM2 Style') }}.</td>
  </tr>
  <tr>
   <td>{{ SpecName('DOM2 Style', 'stylesheets.html#StyleSheets-StyleSheet', 'StyleSheet') }}</td>
   <td>{{ Spec2('DOM2 Style') }}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>



<p>{{Compat("api.StyleSheet")}}</p>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{domxref("CSSStyleSheet")}}</li>
</ul>