Visit Mozilla.org

DOM:cssRule.cssText

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

cssText returns the actual text of the style rule.

[edit] Syntax

string = cssRule.cssText 

[edit] Example

if ( myRule.cssText.indexOf("background-color") != -1 ) {
   bgRule = myRule;
} 
... 

[edit] Specification

DOM Level 2 Style - cssRule