1 parent 57ef19f commit 59062d6Copy full SHA for 59062d6
1 file changed
sparkly-text.js
@@ -66,7 +66,8 @@ class SparklyText extends HTMLElement {
66
}
67
68
connectedCallback() {
69
- if (this.shadowRoot) {
+ // https://caniuse.com/mdn-api_cssstylesheet_replacesync
70
+ if (this.shadowRoot || !("replaceSync" in CSSStyleSheet.prototype)) {
71
return;
72
73
0 commit comments