CSSStyleSheet
A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet.
interface CSSStyleSheet extends StyleSheet {
readonly cssRules: CSSRuleList;
readonly ownerRule: CSSRule | null;
readonly rules: CSSRuleList;
addRule(
selector?: string,
style?: string,
index?: number,
): number;deleteRule(index: number): void;
insertRule(rule: string, index?: number): number;
removeRule(index?: number): void;
replace(text: string): Promise<CSSStyleSheet>;
replaceSync(text: string): void;
}var CSSStyleSheet: {
prototype: CSSStyleSheet;
new (options?: CSSStyleSheetInit): CSSStyleSheet;
};