Broken images do not respect css?

I am using a headless cms approach, and my backend got hacked -.-

I noticed something: when image links are broken, besides the obvious effect of them not appearing, they won't respect our CSS.

I am using grid, I am setting img as block and the whole max-width 100% thing, and I tested with huge placeholder images, but they fit as I would expect. Broken links generate overflow though.

Why is that? Is there a workaround?
Was this page helpful?