img element w/o src attribute and pseudo element

src属性のないimg要素に対しては::before (::after)擬似要素を挿入することができる。

without src

img without src

with src