Twitter Viewer
Tweet ID or URL:
Go
( huh? )
jcsrb
Jakob Cosoroabă
@LeaVerou should this work?
dabblet.com/gist/2420860
( css background over css function "attr" )
April 19, 2012
#
LeaVerou
Lea Verou
@jcsrb No, you can't include anything except strings in url(). This was discussed recently in www-style, search the archives.
April 19, 2012
#
jcsrb
Jakob Cosoroabă
@LeaVerou thanks for quick the answer, what about
w3.org/TR/css3-values…
type URL then ?
April 19, 2012
#
LeaVerou
Lea Verou
@jcsrb That's different. The entire value of the attribute is treated as a URI in that case.
April 19, 2012
#
jcsrb
Jakob Cosoroabă
@LeaVerou a.img in that dabblet should be that case, the href of that link points to an image
April 19, 2012
#
LeaVerou
Lea Verou
@jcsrb Oh yes, that should work. IF browsers had implemented CSS3 attr() that is. Sadly, none have. :(
April 19, 2012
#