Is there any way to detect whether a browser supports CSS custom properties (eg. color: var(--primary)
)?
I need to write a script that behaves slightly differently in browsers that don't support custom properties, but I can't find any documented Modernizr tests, nor any information about the Javascript interface for accessing custom properties.
Would be grateful for any suggestions!