--- title: CssRule.cssText slug: Web/API/CSSRule/cssText translation_of: Web/API/CSSRule/cssText ---
Summary
cssText returns the current text style rule.
string = cssRule.cssText
if (myRule.cssText.indexOf ("background-color")! = -1) { bgRule = MyRule; } ...
DOM Level 2 Style - cssRule