Help Center

Local Navigation

CSSStyleDeclaration properties

Property name

Type

Description

Status

Support level

Availability

cssText

DOMString

Specifies the name of the CSS selector for the rule set.

writable

DOM 2 Style

4.6 or later

length

int

Returns the number of properties that have been explicitly set.

read only

DOM 2 Style

4.6 or later

parentRule

CSSRule

Returns the CSSRule that contains this declaration block.

read only

DOM 2 Style

4.6 or later

Object: CSSStyleRule

Availability

BlackBerry® Device Software version 4.6 or later

Extends

CSSRule

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

CSSStyleRule properties

Property name

Type

Description

Status

Support level

Availability

selectorText

DOMString

Specifies the name of the CSS selector for the rule set.

writable

DOM 2 Style

4.6 or later

style

CSSStyleDeclaration

Returns the style values for the CSS selector.

read only

DOM 2 Style

4.6 or later


Was this information helpful? Send us your comments.