From b80b5bb1a37c442a92667b7f17c5991cd6d08ef5 Mon Sep 17 00:00:00 2001 From: Nurettin Kaya Date: Fri, 30 Apr 2021 06:00:36 -0700 Subject: [PATCH] [JIT] Support CSS Variables in arbitrary calc (#4147) --- jit/pluginUtils.js | 5 ++++- jit/tests/arbitrary-values.test.css | 9 +++++++++ jit/tests/arbitrary-values.test.html | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/jit/pluginUtils.js b/jit/pluginUtils.js index e3089c26a9a1..5cf4c5d36c19 100644 --- a/jit/pluginUtils.js +++ b/jit/pluginUtils.js @@ -112,7 +112,10 @@ function asValue(modifier, lookup = {}, { validate = () => true, transform = (v) } // add spaces around operators inside calc() that do not follow an operator or ( - return transform(value).replace(/(?<=^calc\(.+?)(?
+
+
+