Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pseudo-elements on images #4

Open
KittyGiraudel opened this issue Mar 15, 2014 · 1 comment
Open

Pseudo-elements on images #4

KittyGiraudel opened this issue Mar 15, 2014 · 1 comment

Comments

@KittyGiraudel
Copy link

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/.

@jensgro
Copy link

jensgro commented Dec 12, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants