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.

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

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

Last modified: 2014-03-10



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

comments powered by Disqus