CSSRule
A single CSS rule. There are several types of rules, listed in the Type constants section below.
interface CSSRule {
readonly CHARSET_RULE: number;
cssText: string;
readonly FONT_FACE_RULE: number;
readonly IMPORT_RULE: number;
readonly KEYFRAME_RULE: number;
readonly KEYFRAMES_RULE: number;
readonly MEDIA_RULE: number;
readonly NAMESPACE_RULE: number;
readonly PAGE_RULE: number;
readonly parentRule: CSSRule | null;
readonly parentStyleSheet: CSSStyleSheet | null;
readonly STYLE_RULE: number;
readonly SUPPORTS_RULE: number;
readonly type: number;
}var CSSRule: {
prototype: CSSRule;
readonly CHARSET_RULE: number;
readonly FONT_FACE_RULE: number;
readonly IMPORT_RULE: number;
readonly KEYFRAMES_RULE: number;
readonly KEYFRAME_RULE: number;
readonly MEDIA_RULE: number;
readonly NAMESPACE_RULE: number;
readonly PAGE_RULE: number;
readonly STYLE_RULE: number;
readonly SUPPORTS_RULE: number;
new (): CSSRule;
};§Properties
§
readonly parentStyleSheet: CSSStyleSheet | null
[src]