FileDocCategorySizeDatePackage
CSSStyleRule.javaAPI DocJava SE 6 API1800Tue Jun 10 00:27:34 BST 2008org.w3c.dom.css

CSSStyleRule

public interface CSSStyleRule implements CSSRule
The CSSStyleRule interface represents a single rule set in a CSS style sheet.

See also the Document Object Model (DOM) Level 2 Style Specification.

since
DOM Level 2

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetSelectorText()
The textual representation of the selector for the rule set. The implementation may have stripped out insignificant whitespace while parsing the selector.

public org.w3c.dom.css.CSSStyleDeclarationgetStyle()
The declaration-block of this rule set.

public voidsetSelectorText(java.lang.String selectorText)
The textual representation of the selector for the rule set. The implementation may have stripped out insignificant whitespace while parsing the selector.

exception
DOMException SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this rule is readonly.