Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/gauntlet/imports/happy_dom.ts>CSSStyleSheet

Work-in-progress front-end tool which does put a smile on my face
Latest
class CSSStyleSheet
Re-export
import { CSSStyleSheet } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";

Attr node interface.

Constructors

new
CSSStyleSheet(options?: { media?: MediaList | string; title?: string; alternate?: boolean; disabled?: boolean; })

Constructor.

Constructable Stylesheets is a new feature that only Blink supports: https://wicg.github.io/construct-stylesheets/

Properties

alternate: boolean
readonly
cssRules: CSSRule[]
disabled: boolean
media: MediaList | string
name: string
namespaceURI: string
title: string
value: string

Methods

deleteRule(index: number): void

Removes a rule.

Constructable Stylesheets is a new feature that only Blink supports: https://wicg.github.io/construct-stylesheets/

insertRule(rule: string, index?: number): void

Inserts a rule.

Constructable Stylesheets is a new feature that only Blink supports: https://wicg.github.io/construct-stylesheets/

replace(text: string): Promise<void>

Replaces all CSS rules.

Constructable Stylesheets is a new feature that only Blink supports: https://wicg.github.io/construct-stylesheets/

replaceSync(text: string): void

Replaces all CSS rules.

Constructable Stylesheets is a new feature that only Blink supports: https://wicg.github.io/construct-stylesheets/