diff --git a/src/dom-shim.js b/src/dom-shim.js index ee621ea..8f3c044 100644 --- a/src/dom-shim.js +++ b/src/dom-shim.js @@ -1,5 +1,12 @@ function noop() { } +// https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/CSSStyleSheet +class CSSStyleSheet { + constructor() { } + replace() { } + replaceSync() { } +} + // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget class EventTarget { constructor() { @@ -146,4 +153,5 @@ class CustomElementsRegistry { globalThis.addEventListener = globalThis.addEventListener ?? noop; globalThis.document = globalThis.document ?? new Document(); globalThis.customElements = globalThis.customElements ?? new CustomElementsRegistry(); -globalThis.HTMLElement = globalThis.HTMLElement ?? HTMLElement; \ No newline at end of file +globalThis.HTMLElement = globalThis.HTMLElement ?? HTMLElement; +globalThis.CSSStyleSheet = globalThis.CSSStyleSheet ?? CSSStyleSheet; \ No newline at end of file