Help Center

Local Navigation

Object: CSSRule

Availability

BlackBerry® Device Software version 4.6 or later

Extended by

CSSCharsetRule, CSSFontFaceRule, CSSImportRule, CSSMediaRule, CSSPageRule, CSSStyleRule, CSSUnknownRule

The CSSRule object is the base class used to define any rule in a CSS Style sheet, including both rule sets and @ rules.

CSSRule properties

Property name

Type

Description

Status

Availability

parentRule

CSSRule

Returns the parent rule, if this rule is contained within another rule (for example, a style rule within an @media block).

read only

4.6 or later

parentStyleSheet

CSSStyleSheet

Returns the style sheet that contains this rule.

read only

4.6 or later

type

unsigned short

Returns the type of rule. The following constants represent the numerical values used to define the rule type:

read only

4.6 or later


Was this information helpful? Send us your comments.