A single CSS rule. There are several types of rules, listed in the Type constants section below.

interface CSSRule {
    CHARSET_RULE: number;
    FONT_FACE_RULE: number;
    IMPORT_RULE: number;
    KEYFRAMES_RULE: number;
    KEYFRAME_RULE: number;
    MEDIA_RULE: number;
    NAMESPACE_RULE: number;
    PAGE_RULE: number;
    STYLE_RULE: number;
    SUPPORTS_RULE: number;
    cssText: string;
    parentRule: null | CSSRule;
    parentStyleSheet: null | CSSStyleSheet;
    type: number;
}

Properties

CHARSET_RULE: number
FONT_FACE_RULE: number
IMPORT_RULE: number
KEYFRAMES_RULE: number
KEYFRAME_RULE: number
MEDIA_RULE: number
NAMESPACE_RULE: number
PAGE_RULE: number
STYLE_RULE: number
SUPPORTS_RULE: number
cssText: string
parentRule: null | CSSRule
parentStyleSheet: null | CSSStyleSheet
type: number