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#replace

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

Replaces all CSS rules.

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

Parameters

text: string

CSS text.

Returns

Promise<void>

Promise.