The CSSMediaRule is an interface representing a single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE).

Documentation CSSMediaRule by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Variables

read onlymedia:MediaList

Specifies a MediaList representing the intended destination medium for style information.

Inherited Variables

Defined by CSSConditionRule

conditionText:String

Represents the text of the condition of the rule.

Defined by CSSGroupingRule

Defined by CSSRule

Inherited Methods

Defined by CSSGroupingRule

deleteRule(index:Int):Void

Throws:

null

DOMError

@:value({ index : 0 })insertRule(rule:String, index:Int = 0):Int

Throws:

null

DOMError