Interface CSSRule
interface CSSRule {
CHARSET_RULE: 2;
COUNTER_STYLE_RULE: 11;
cssText: string;
FONT_FACE_RULE: 5;
FONT_FEATURE_VALUES_RULE: 14;
IMPORT_RULE: 3;
KEYFRAME_RULE: 8;
KEYFRAMES_RULE: 7;
MEDIA_RULE: 4;
NAMESPACE_RULE: 10;
PAGE_RULE: 6;
parentRule: CSSRule | null;
parentStyleSheet: CSSStyleSheet | null;
STYLE_RULE: 1;
SUPPORTS_RULE: 12;
type: number;
}
CHARSET_RULE: 2;
COUNTER_STYLE_RULE: 11;
cssText: string;
FONT_FACE_RULE: 5;
FONT_FEATURE_VALUES_RULE: 14;
IMPORT_RULE: 3;
KEYFRAME_RULE: 8;
KEYFRAMES_RULE: 7;
MEDIA_RULE: 4;
NAMESPACE_RULE: 10;
PAGE_RULE: 6;
parentRule: CSSRule | null;
parentStyleSheet: CSSStyleSheet | null;
STYLE_RULE: 1;
SUPPORTS_RULE: 12;
type: number;
}
Properties
ReadonlyCHARSET_RULE
CHARSET_RULE: 2
ReadonlyCOUNTER_STYLE_RULE
COUNTER_STYLE_RULE: 11
cssText
cssText: string
The cssText property of the CSSRule interface returns the actual text of a CSSStyleSheet style-rule.
ReadonlyFONT_FACE_RULE
FONT_FACE_RULE: 5
ReadonlyFONT_FEATURE_VALUES_RULE
FONT_FEATURE_VALUES_RULE: 14
ReadonlyIMPORT_RULE
IMPORT_RULE: 3
ReadonlyKEYFRAME_RULE
KEYFRAME_RULE: 8
ReadonlyKEYFRAMES_RULE
KEYFRAMES_RULE: 7
ReadonlyMEDIA_RULE
MEDIA_RULE: 4
ReadonlyNAMESPACE_RULE
NAMESPACE_RULE: 10
ReadonlyPAGE_RULE
PAGE_RULE: 6
ReadonlyparentRule
The parentRule property of the CSSRule interface returns the containing rule of the current rule if this exists, or otherwise returns null.
ReadonlyparentStyleSheet
The parentStyleSheet property of the the current rule is defined.
ReadonlySTYLE_RULE
STYLE_RULE: 1
ReadonlySUPPORTS_RULE
SUPPORTS_RULE: 12
Readonlytype
type: number
The read-only type property of the indicating which type of rule the CSSRule represents.
The
CSSRuleinterface represents a single CSS rule.MDN Reference