I have used the content attribute for a long time, and today I wanted to try something new. Instead of using JS to display a image tooltip I wanted to know if it wa
As of W3C Candidate Recommendation 28 August 2012, there is syntax for specifying the type returned by attr().
It is described here.
Long story short, the following would work:
content: attr(id url);
But it still doesn't seem like you would be able to concatenate that with other strings, which is annoying.
Anyhow, this still doesn't seem to be implemented anywhere.
Check Browser compatibility