Testing CSS var function

Does the CSS var() function care if there are spaces around the variable name? While the browser will not handle it in the debugger, it does appear to apply properly.

by Andrew Holloway

HTML

<div class="test">
test
</div>

CSS

:root {
 --text-color: red; 
}

.test {
  color: var(
    --text-color
  );
}

JavaScript

// @see https://bugs.chromium.org/p/chromium/issues/detail?id=1465958