* Asynchronously replace the stylesheet content * @param {string} cssText CSS text content * @returns {Promise<CSSStyleSheet>} Promise that resolves to this stylesheet
(cssText)
| 634 | * @returns {Promise<CSSStyleSheet>} Promise that resolves to this stylesheet |
| 635 | */ |
| 636 | replace(cssText) { |
| 637 | return Promise.resolve().then(() => { |
| 638 | this.replaceSync(cssText); |
| 639 | return this; |
| 640 | }); |
| 641 | } |
| 642 | |
| 643 | /** |
| 644 | * Get the parsed CSS rules |