[html] Does :before not work on img elements?

Due to the nature of <img> being a replaced element, document styling doesn’t affected it.

To reference it anyway, <picture> provides an ideal, native wrapper that can have pseudo-elements attached to it, like so:

_x000D_
_x000D_
img:after, picture:after{_x000D_
    content:"\1F63B";_x000D_
    font-size:larger;_x000D_
    margin:-1em;_x000D_
}
_x000D_
<img src="//placekitten.com/110/80">_x000D_
_x000D_
<picture>_x000D_
    <img src="//placekitten.com/110/80">_x000D_
</picture>
_x000D_
_x000D_
_x000D_