Help Center

Local Navigation

Object: CSSStyleSheet

Availability

BlackBerry® Device Software version 4.6 or later

Extends

StyleSheet

The CSSStyleSheet object represents a CSS style sheet.

CSSStyleSheet methods

Method name

Description

Support level

Availability

deleteRule()

Deletes a rule from the CSS style sheet.

DOM 2 Style

4.6 or later

insertRule()

Adds a new rule to the CSS style sheet.

DOM 2 Style

4.6 or later

CSSStyleSheet properties

Property name

Type

Description

Status

Support level

Availability

CSSRules

CSSRuleList

Returns a list of all CSS rules contained within the style sheet. This includes both rule sets and at-rules.

read only

DOM 2 Style

4.6 or later

ownerRule

CSSRule

Returns the CSSImportRule object for imported style sheets. If the style sheet is not imported, the value for this property is null.

read only

DOM 2 Style

4.6 or later

Previous topic: CSSStyleRule properties

Was this information helpful? Send us your comments.