That&#x27;s exactly what you can do.  var() is replaced at computed-value time, so calling gCS().color will return &quot;red&quot; or whatever.<p>If you use an API that gives you the value at an earlier time, like el.style.color (which is &quot;specified value&quot;), you&#x27;ll see the var().