replace method

JSPromise<CSSStyleSheet> replace(
  1. String text
)

The replace() method of the CSSStyleSheet interface asynchronously replaces the content of the stylesheet with the content passed into it. The method returns a promise that resolves with the CSSStyleSheet object.

The replace() and CSSStyleSheet.replaceSync methods can only be used on a stylesheet created with the CSSStyleSheet.CSSStyleSheet constructor.

Implementation

external JSPromise<CSSStyleSheet> replace(String text);