Interface CSSSupportsRule

An object representing a single CSS

Supports

at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_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
parentRule: CSSRule
parentStyleSheet: CSSStyleSheet
type: number

Deprecated

MDN Reference

Methods

  • Parameters

    • index: number

    Returns void

  • Parameters

    • rule: string
    • Optional index: number

    Returns number