Show and reload broken images

The name explained it

< Σχολιασμός για τον κώδικα Show and reload broken images

Ερώτηση/σχόλιο

Ebb
§
Δημοσιεύτηκε: 26/09/2017

Not working on chromium

It stopped working on chromium (61.0.3163.100) recently. The placeholder doesn't show up anymore.

eightΔημιουργός
§
Δημοσιεύτηκε: 26/09/2017

This script can only affect Firefox (See https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-force-broken-image-icon), so if something goes wrong in Chrome, it probably is not caused by this script.

Ebb
§
Δημοσιεύτηκε: 27/09/2017

Can you make it compatible for chrome as well?

§
Δημοσιεύτηκε: 27/09/2017
Επεξεργάστηκε: 27/09/2017

Thanks for sharing. I hope it will be helpful for too many people that are searching for this topic.website content writing services india

eightΔημιουργός
§
Δημοσιεύτηκε: 27/09/2017

Chrome doesn't provide a way to show broken icon. There is already an open issue for this.

Before the bug is fixed in chrome, I suggest to apply this CSS style with userstyle manager (e.g. stylus):

img {font-size: 0;}

img:before {
  content: "Broken Image";
  font-size: 16px;
  border: 1px solid;
}

Demo.

Or, apply this to match Firefox behavior:

img:not([alt]):before {
  content: "Broken Image";
  font-size: 16px;
  border: 1px solid;
}

Demo.

Ebb
§
Δημοσιεύτηκε: 28/09/2017

Thank you. This is better than nothing.

§
Δημοσιεύτηκε: 13/05/2022

I am a professional writer. I am a mentalist too. I love to talk with people and read their mind by asking some tricky questions. It is the perfect way to know more about the person in front of me. It makes my job easier. Right now I am working for https://sites.google.com/site/bestessaywritingservicereview/ writing service.

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.