Interface CSSMediaRule

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).

MDN Reference

Hierarchy

Properties

CHARSET_RULE: 2
FONT_FACE_RULE: 5
IMPORT_RULE: 3
KEYFRAMES_RULE: 7
KEYFRAME_RULE: 8
MEDIA_RULE: 4
NAMESPACE_RULE: 10
PAGE_RULE: 6
STYLE_RULE: 1
SUPPORTS_RULE: 12
conditionText: string
cssRules: CSSRuleList
cssText: string
media: MediaList
parentRule: CSSRule
parentStyleSheet: CSSStyleSheet
type: number

Deprecated

MDN Reference

Methods

  • Parameters

    • index: number

    Returns void

  • Parameters

    • rule: string
    • Optional index: number

    Returns number