blob: 4dd97fff2c5dd5d2cff6c8762fff4966eea0bdc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
title: CssRule.cssText
slug: Web/API/CSSRule/cssText
translation_of: Web/API/CSSRule/cssText
---
<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>cssText</font></font></strong><font><font> returns the current text style rule.</font></font></p>
<h3 id="Syntax" name="Syntax"><font><font>Syntax</font></font></h3>
<pre class="eval"><em><font><font>string</font></font></em> = cssRule.cssText
</pre>
<h3 id="Example" name="Example"><font><font>Instance</font></font></h3>
<pre class="eval">if (myRule.cssText.indexOf ("background-color")! = -1) {
bgRule = MyRule;
}
...
</pre>
<h3 id="Specification" name="Specification"><font><font>Specification</font></font></h3>
<p><font><font>DOM Level 2 Style - cssRule</font></font></p>
|