diff --git a/src/client/dom/css.ts b/src/client/dom/css.ts index ebd10fe..8b58ba4 100644 --- a/src/client/dom/css.ts +++ b/src/client/dom/css.ts @@ -50,6 +50,8 @@ export default function (client: ScramjetClient) { return new Proxy(style, { get(t, p) { const v = Reflect.get(t, p); + if (p in CSSStyleDeclaration.prototype) return v; + if (typeof v === "function") { return new Proxy(v, { apply(target, thisArg, argArray) {