Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StyleElement

Hierarchy

Index

Constructors

Properties

animationFrozen: boolean = false
animationFrozenValue: string = ''
attributes: Record<string, Property<unknown>> = {}
captureTextNodes: boolean = false
children: Element[] = []
document: Document
node?: HTMLElement
parent: Element = null
styles: Record<string, Property<unknown>> = {}
stylesSpecificity: Record<string, string> = {}
type: string = 'style'
ignoreChildTypes: string[] = ...
parseExternalUrl: (url: string) => string = parseExternalUrl

Type declaration

    • (url: string): string
    • Parse external URL.

      Parameters

      • url: string

        CSS url string.

      Returns string

      Parsed URL.

Methods

  • addChild(childNode: HTMLElement | Element): void
  • addStylesFromStyleDefinition(): void
  • getAttribute(name: string, createIfNotExists?: boolean): Property<unknown>
  • getStyle(name: string, createIfNotExists?: boolean, skipAncestors?: boolean): Property<unknown>
  • isFirstChild(): boolean
  • matchesSelector(selector: string): boolean
  • removeStyles(element: Element, ignoreStyles: string[]): [string, string][]
  • restoreStyles(element: Element, styles: [string, string][]): void

Generated using TypeDoc