Help Center

Local Navigation

Object: CSSMediaRule

Availability

BlackBerry® Device Software version 4.6 or later

Extends

CSSRule

The CSSMediaRule interface represents an @media rule in a CSS style sheet. The @media rule is used to delimit style rules for specific media types.

CSSMediaRule properties

Property name

Type

Description

Status

Support level

Availability

CSSRules

CSSRuleList

Returns a list of the CSS rules contained within a media block.

read only

DOM 2 Style

4.6 or later

media

MediaList

Returns a list of media types that this style sheet can be used with.

read only

DOM 2 Style

4.6 or later

CSSMediaRule methods

Method name

Description

Support level

Availability

deleteRule()

Removes a rule from the media block.

DOM 2 Style

4.6 or later

insertRule()

Adds a rule to the media block.

DOM 2 Style

4.6 or later

Previous topic: CSSImportRule properties

Was this information helpful? Send us your comments.