You can now use attr() with any CSS property–including custom properties–and it can parse values into data types other than strings.| Chrome for Developers