The spectrum says:
The attr () function returns the value of the element attribute to use as the value in the property . If used in a pseudo-element, it returns the attribute value of the element of the element generating the pseudo-element.
http://www.w3.org/TR/css3-values/#attr
However, this does not work. When I use background-image: url(attr(href));
, I get the string "attr (href)" as the value of the attribute, not the value itself.
http://jsfiddle.net/x2Rpt/1/
Any ideas why this is broken?
source share