Do the “::before” and “::after” pseudo elements not work on image elements?
Here’s an example I put together…I’m just trying to get a yellow background behind the image here:
http://dabblet.com/gist/3861878
I saw this “answered” (but no other details) in another post, but can’t seem to find anything about it elsewhere.
CSS 2.1 spec says:
http://www.w3.org/TR/CSS21/generate.html
So it it’d be wise to avoid using this. Behavior across the browsers is uncertain and can change in future.