From b3d05a5df7e3d001532d0607b1e9455ae1cff2f2 Mon Sep 17 00:00:00 2001 From: Johannes Odland Date: Thu, 9 Nov 2023 19:00:04 +0100 Subject: [PATCH] Add value getter to CSSMathInvert and CSSMathNegate (#170) --- src/proxy-cssom.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/proxy-cssom.js b/src/proxy-cssom.js index e47b541e..da068b66 100644 --- a/src/proxy-cssom.js +++ b/src/proxy-cssom.js @@ -120,12 +120,20 @@ export function installCSSOM() { constructor(values) { super([arguments[0]], 'negate', '-'); } + + get value() { + return privateDetails.get(this).values[0]; + } }, 'CSSMathInvert': class extends MathOperation { constructor(values) { super([1, arguments[0]], 'invert', 'calc', ' / '); } + + get value() { + return privateDetails.get(this).values[1]; + } }, 'CSSMathMax': class extends MathOperation {