public interface

CSSStyleRule

implements CSSRule
org.w3c.dom.css.CSSStyleRule

Class Overview

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

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

Summary

[Expand]
Inherited Constants
From interface org.w3c.dom.css.CSSRule
Public Methods
abstract String getSelectorText()
The textual representation of the selector for the rule set.
abstract CSSStyleDeclaration getStyle()
The declaration-block of this rule set.
abstract void setSelectorText(String selectorText)
The textual representation of the selector for the rule set.
[Expand]
Inherited Methods
From interface org.w3c.dom.css.CSSRule

Public Methods

public abstract String getSelectorText ()

The textual representation of the selector for the rule set. The implementation may have stripped out insignificant whitespace while parsing the selector.

public abstract CSSStyleDeclaration getStyle ()

The declaration-block of this rule set.

public abstract void setSelectorText (String selectorText)

The textual representation of the selector for the rule set. The implementation may have stripped out insignificant whitespace while parsing the selector.

Throws
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.