REVENGE.CSS
REVENGE.CSS copied to clipboard
Pseudo-elements on images
As far as I know, pseudo-elements do not work on replaced content. img
is a replaced element, thus the ::after
pseudo-element won't display anything.
More informations: http://red-team-design.com/css-generated-content-replaced-elements/.
You are mostly right. But when images cannot be displayed, the pseudo-elements are present. So you can display a failure notice which will vanish when the image is loaded.