aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/api/cssrule/parentstylesheet/index.html
blob: f66c60313738a25845f98b383845281b3b06912f (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
---
title: cssRule.parentStyleSheet
slug: Web/API/CSSRule/parentStyleSheet
translation_of: Web/API/CSSRule/parentStyleSheet
---
<div>
 {{APIRef}}</div>
<div>
  </div>
<p><span style="font-size: 1.71428571428571rem; letter-spacing: -0.5px; line-height: 24px;">Summary</span></p>
<p><strong><font><font>parentStyleSheet</font></font></strong><font><font> returns the object type of style sheet, in which the rule is defined.</font></font></p>
<h3 id="Syntax" name="Syntax"><font><font>Syntax</font></font></h3>
<pre class="eval"><em><font><font>stylesheet</font></font></em> = cssRule.parentStyleSheet
</pre>
<h3 id="Parameters" name="Parameters"><font><font>Parameters</font></font></h3>
<ul>
 <li><code><font><font>stylesheet</font></font></code><font><font> stylesheet is an object type.</font></font></li>
</ul>
<h3 id="Example" name="Example"><font><font>Instance</font></font></h3>
<pre class="eval">if (bgRule.parentStyleSheet! = MySheet) {
   // Style alien rule!
}
</pre>
<h3 id="Notes" name="Notes"><font><font>Letters</font></font></h3>
<p><font><font>See </font></font><a href="/es/DOM/event#DOM_styleSheet_Object" title="en / DOM / event # DOM_styleSheet_Object"><font><font>Gecko DOM Reference: event # DOM_styleSheet_Object</font></font></a><font><font> for more information about the interface type objects stylesheet.</font></font></p>
<h3 id="Specification" name="Specification"><font><font>Specification</font></font></h3>
<p><font><font>DOM Level 2 Style - cssRule</font></font></p>