Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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;
}
;

§Extends

§Properties

§
readonly cssRules: CSSRuleList
[src]
§
readonly ownerRule: CSSRule | null
[src]
§
readonly rules: CSSRuleList
[src]

§Methods

§
addRule(
selector?: string,
style?: string,
index?: number,
): number
[src]
§
deleteRule(index: number): void
[src]
§
insertRule(rule: string, index?: number): number
[src]
§
removeRule(index?: number): void
[src]
§
replace(text: string): Promise<CSSStyleSheet>
[src]
§
replaceSync(text: string): void
[src]