Support would depend on the given browser's implementation. If it's not working, then it's not currently supported.
According to MDN, support for properties other than content
is experimental:
The attr()
function can be used with any CSS property, but support for properties other than content
is experimental.