Help Center

Local Navigation

Object: CSSImportRule

Availability

BlackBerry® Device Software version 4.6 or later

Extends

CSSRule

The CSSImportRule interface represents an @import rule within a CSS style sheet. The @import rule is used to import style rules from other style sheets.

CSSImportRule properties

Property name

Type

Description

Status

Support level

Availability

href

DOMString

Returns the location of the style sheet to be imported. The attribute does not contain the "url(...)" specifier around the URI.

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

styleSheet

CSSStyleSheet

Returns the CSSStyleSheet object referred to by this rule, if it has been loaded.

read only

DOM 2 Style

4.6 or later


Was this information helpful? Send us your comments.