CSSStyleSheet
interface · experimental
interface CSSStyleSheetUNSTABLE: New API, yet to be vetted.
A style sheet backing a CSS module script. This is what a
import sheet from "./styles.css" with { type: "css" } import evaluates
to. Available only when the --unstable-raw-imports flag is enabled.
Ende has no DOM, so a sheet can't be adopted anywhere; the implementation is backed by the raw CSS text.
Note: cssRules returns a frozen array of CSSRule instead of a
live CSSRuleList.
variable · experimental
var CSSStyleSheet: { … }UNSTABLE: New API, yet to be vetted.
Constructors
constructor
new CSSStyleSheet(): CSSStyleSheetProperties
cssRules
readonly cssRules: readonly CSSRule[]prototype
readonly prototype: CSSStyleSheetMethods
replace
replace(text: string): Promise<CSSStyleSheet>replaceSync
replaceSync(text: string): void