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.

Properties

Property name

Type

Description

Status

Support level

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

DOM 2 Style

4.6+

parentStyleSheet

CSSStyleSheet

Returns the style sheet that contains this rule.

read only

DOM 2 Style

4.6+

type

unsigned short

Returns the type of rule, represented using a CSSRule constant.

read only

DOM 2 Style

4.6+

Constants

Constant

Value type

Description

Support level

Availability

0

UNKNOWN_RULE

A CSSUnknownRule .

DOM 2 Style

4.6+

1

STYLE_RULE

A CSSStyleRule .

DOM 2 Style

4.6+

2

CHARSET_RULE

A CSSCharsetRule .

DOM 2 Style

4.6+

3

IMPORT_RULE

A CSSImportRule .

DOM 2 Style

4.6+

4

MEDIA_RULE

A CSSMediaRule .

DOM 2 Style

4.6+

5

FONT_FACE_RULE

A CSSFontFaceRule .

DOM 2 Style

4.6+

6

PAGE_RULE

A CSSPageRule .

DOM 2 Style

4.6+

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus