Javascript Reference
Categories: cssRule

javascript cssRule parentRule

@March 15, 2008, 1:22 a.m.
parentRuleFirefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2  

Read-only  

Refers to the cssRule object that contains the current cssRule, such as a rule nested inside an @ rule. Accessing this property value can crash Netscape 6.2.

 
Example
 
var superRule = document.styleSheets[0].cssRules[1].parentRule;
 
Value

cssRule object reference.

 
Default

null

 
W3C DOM CSSRule Types

All.


Powered by Linode.