From 8289faaf53bf9f8c080e7048b7da0f468dc621d0 Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 3 Nov 2024 13:52:18 -0300 Subject: [PATCH] polyfill css media rule - this is a copy from #614 --- src/lib/web-worker/worker-window.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/web-worker/worker-window.ts b/src/lib/web-worker/worker-window.ts index 5500a36d..dff93692 100644 --- a/src/lib/web-worker/worker-window.ts +++ b/src/lib/web-worker/worker-window.ts @@ -354,6 +354,7 @@ export const createWindow = ( patchDocumentElementChild(win.HTMLBodyElement, env); patchHTMLHtmlElement(win.HTMLHtmlElement, env); createCSSStyleSheetConstructor(win, 'CSSStyleSheet'); + createCSSStyleSheetConstructor(win, 'CSSMediaRule'); definePrototypeNodeType(win.Comment, 8); definePrototypeNodeType(win.DocumentType, 10);