CSS3 attr() function for all propertiesExternal Link

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

While attr() is supported for effectively all browsers for the content property, CSS Values and Units Level 5 adds the ability to use attr() on any CSS property, and to use it for non-string values (e.g. numbers, colors).

IE
Edge
Firefox
Chrome
Safari
Safari iOS
Opera Mini
Chrome Android
Android Browser
Samsung Internet
Globals: 75.32% of all users can use this feature, 75.32% fully supported, 0% partially supported
✓Supported
✗Not supported
Partial support
Behind a Flag