Interface CSSMediaRule

    A single CSS

    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

    interface CSSMediaRule {
        CHARSET_RULE: 2;
        conditionText: string;
        COUNTER_STYLE_RULE: 11;
        cssRules: CSSRuleList;
        cssText: string;
        FONT_FACE_RULE: 5;
        FONT_FEATURE_VALUES_RULE: 14;
        IMPORT_RULE: 3;
        KEYFRAME_RULE: 8;
        KEYFRAMES_RULE: 7;
        media: MediaList;
        MEDIA_RULE: 4;
        NAMESPACE_RULE: 10;
        PAGE_RULE: 6;
        parentRule: CSSRule;
        parentStyleSheet: CSSStyleSheet;
        STYLE_RULE: 1;
        SUPPORTS_RULE: 12;
        type: number;
        deleteRule(index: number): void;
        insertRule(rule: string, index?: number): number;
    }
    Hierarchy

    Properties

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

    MDN Reference

    Methods