diff --git a/src/proxy-cssom.js b/src/proxy-cssom.js index e7aa0d2..777d164 100644 --- a/src/proxy-cssom.js +++ b/src/proxy-cssom.js @@ -197,6 +197,8 @@ export function installCSSOM() { } const cssOMTypes = { + 'CSSNumericValue': CSSNumericValue, + 'CSSMathValue': CSSMathValue, 'CSSUnitValue': class extends CSSNumericValue { constructor(value, unit) { super(); @@ -359,7 +361,7 @@ export function installCSSOM() { }); } - for (let [type, value] of Object.entries({'CSSMathValue': CSSMathValue, 'CSSNumericValue': CSSNumericValue, ...cssOMTypes})) { + for (let [type, value] of Object.entries({cssOMTypes})) { if (type in window) continue; if (!Reflect.defineProperty(window, type, { value }))