Consider the following code:
/* css */
:root {
  --text-color: #666666;
}
input {
  color: var(--text-color);
}
How do I know, using Javascript, which is the name of the CSS custom properties (variables) used?
// javascript
console.log(document.querySelector('input').style.color);
// prints "", instead of "var(--text-color) or #666666".
Context: I'm writing tests to check if the element has the proper color (or CSS variable) that it should have.
 
     
    