Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CSSStyleSheet

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

Hierarchy

Index

Properties

StyleSheet

StyleSheet: { constructor: any; prototype: StyleSheet }

Type declaration

Readonly cssRules

cssRules: CSSRuleList

disabled

disabled: boolean

Readonly href

href: string | null

Readonly media

media: MediaList

Readonly ownerNode

ownerNode: Element | ProcessingInstruction | null

Readonly ownerRule

ownerRule: CSSRule | null

Readonly parentStyleSheet

parentStyleSheet: CSSStyleSheet | null

Readonly rules

Readonly title

title: string | null

Readonly type

type: string

Methods

addRule

  • addRule(selector?: string, style?: string, index?: number): number
  • Parameters

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

    Returns number

deleteRule

  • deleteRule(index: number): void
  • Parameters

    • index: number

    Returns void

insertRule

  • insertRule(rule: string, index?: number): number
  • Parameters

    • rule: string
    • Optional index: number

    Returns number

removeRule

  • removeRule(index?: number): void
  • Parameters

    • Optional index: number

    Returns void

Generated using TypeDoc