A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet.

interface CSSStyleSheet {
    cssRules: CSSRuleList;
    disabled: boolean;
    href: null | string;
    media: MediaList;
    ownerNode: null | Element | ProcessingInstruction;
    ownerRule: null | CSSRule;
    parentStyleSheet: null | CSSStyleSheet;
    rules: CSSRuleList;
    title: null | string;
    type: string;
    addRule(selector?, style?, index?): number;
    deleteRule(index): void;
    insertRule(rule, index?): number;
    removeRule(index?): void;
    replace(text): Promise<CSSStyleSheet>;
    replaceSync(text): void;
}

Hierarchy (view full)

Properties

cssRules: CSSRuleList
disabled: boolean
href: null | string
media: MediaList
ownerNode: null | Element | ProcessingInstruction
ownerRule: null | CSSRule
parentStyleSheet: null | CSSStyleSheet
rules: CSSRuleList

Deprecated

title: null | string
type: string

Methods

  • Parameters

    • Optional selector: string
    • Optional style: string
    • Optional index: number

    Returns number

    Deprecated

  • Parameters

    • index: number

    Returns void

  • Parameters

    • rule: string
    • Optional index: number

    Returns number

  • Parameters

    • Optional index: number

    Returns void

    Deprecated

  • Parameters

    • text: string

    Returns Promise<CSSStyleSheet>

  • Parameters

    • text: string

    Returns void

Generated using TypeDoc