aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/api/cssstylesheet/index.html
blob: f9781136ae8e83d207c84435e5ddda24e247e49e (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
62
63
64
---
title: CSSStyleSheet
slug: Web/API/CSSStyleSheet
translation_of: Web/API/CSSStyleSheet
---
<p>{{ ApiRef() }}</p>
<p> </p>
<p>This section describes the <a class="external" href="http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleSheet">CSSStyleSheet</a> object, which represents a single CSS stylesheet.</p>
<p>A CSS stylesheet consists of CSS rules, each of them can be manipulated through its <a href="/en/DOM/cssRule" title="en/DOM/cssRule">CSSRule</a> object. The stylesheet object itself lets you examine and modify the stylesheet, including its list of rules.</p>
<p>You can get the list of stylesheets for a given document using the <a href="/en/DOM/document.styleSheets" title="en/DOM/document.styleSheets">document.styleSheets</a> property.</p>
<h3 id="Properties" name="Properties">Properties</h3>
<dl>
 <dt>
  <a href="/en/DOM/stylesheet.cssRules" title="en/DOM/stylesheet.cssRules">stylesheet.cssRules</a></dt>
 <dd>
  Returns all of the CSS rules in the stylesheet as an array.</dd>
 <dt>
  <a href="/en/DOM/stylesheet.disabled" title="en/DOM/stylesheet.disabled">stylesheet.disabled</a></dt>
 <dd>
  This property indicates whether the current stylesheet has been applied or not.</dd>
 <dt>
  <a href="/en/DOM/stylesheet.href" title="en/DOM/stylesheet.href">stylesheet.href</a></dt>
 <dd>
  Returns the location of the stylesheet.</dd>
 <dt>
  <a href="/en/DOM/stylesheet.media" title="en/DOM/stylesheet.media">stylesheet.media</a></dt>
 <dd>
  Specifies the intended destination medium for style information.</dd>
 <dt>
  <a href="/en/DOM/stylesheet.ownerNode" title="en/DOM/stylesheet.ownerNode">stylesheet.ownerNode</a></dt>
 <dd>
  Returns the node that associates this style sheet with the document.</dd>
 <dt>
  <a href="/en/DOM/stylesheet.ownerRule" title="en/DOM/stylesheet.ownerRule">stylesheet.ownerRule</a></dt>
 <dd>
  If this style sheet comes from an @import rule, the ownerRule property will contain the CSSImportRule.</dd>
 <dt>
  <a href="/en/DOM/stylesheet.parentStyleSheet" title="en/DOM/stylesheet.parentStyleSheet">stylesheet.parentStyleSheet</a></dt>
 <dd>
  Returns the stylesheet that is including this one, if any.</dd>
 <dt>
  <a href="/en/DOM/stylesheet.title" title="en/DOM/stylesheet.title">stylesheet.title</a></dt>
 <dd>
  Returns the advisory title of the current style sheet.</dd>
 <dt>
  <a href="/en/DOM/stylesheet.type" title="en/DOM/stylesheet.type">stylesheet.type</a></dt>
 <dd>
  Specifies the style sheet language for this style sheet.</dd>
</dl>
<h3 id="Methods" name="Methods">Methods</h3>
<dl>
 <dt>
  <a href="/en/DOM/stylesheet.deleteRule" title="en/DOM/stylesheet.deleteRule">stylesheet.deleteRule</a></dt>
 <dd>
  Deletes a rule from the stylesheet.</dd>
 <dt>
  <a href="/en/DOM/stylesheet.insertRule" title="en/DOM/stylesheet.insertRule">stylesheet.insertRule</a></dt>
 <dd>
  Inserts a new style rule into the current style sheet.</dd>
</dl>
<h3 id="Specification" name="Specification">Specification</h3>
<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet">DOM Level 2 Style Sheets: StyleSheet</a></p>
<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleSheet">DOM Level 2 CSS: CSSStyleSheet</a></p>
<p>{{ languages( { "pl": "pl/DOM/stylesheet" } ) }}</p>