X
Tap here to go to the mobile version of the site.

Support Forum

Why firefox doesn't show placeholder/icon for broken images?

Posted

My question is exactly like these posts:

https://support.mozilla.org/en-US/questions/1047715 https://support.mozilla.org/en-US/questions/1016612

In both of them, selected answer refers to the following link which is not available now:

http://megashare.altervista.org/blog/2012/08/enable-broken-image-placeholders-in-firefox/

I want to know how can I enable broken image icon in firefox. Note that "browser.display.show_image_placeholders" is true in my browser.

My question is exactly like these posts: https://support.mozilla.org/en-US/questions/1047715 https://support.mozilla.org/en-US/questions/1016612 In both of them, selected answer refers to the following link which is not available now: http://megashare.altervista.org/blog/2012/08/enable-broken-image-placeholders-in-firefox/ I want to know how can I enable broken image icon in firefox. Note that "browser.display.show_image_placeholders" is true in my browser.

Modified by je.nickp

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

More Information

jscher2000
  • Top 10 Contributor
8763 solutions 71700 answers

Which page is giving you a problem? When I try the missing file and corrupted file scenarios, I get a placeholder.

https://www.jeffersonscher.com/res/brokenimg.html

Which page is giving you a problem? When I try the missing file and corrupted file scenarios, I get a placeholder. https://www.jeffersonscher.com/res/brokenimg.html
cor-el
  • Top 10 Contributor
  • Moderator
17530 solutions 158511 answers

You may not see a placeholder if the image dimensions are unknown and not specified in the image tag or via CSS or there is an alt attribute..

You may not see a placeholder if the image dimensions are unknown and not specified in the image tag or via CSS or there is an alt attribute.. *https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-force-broken-image-icon
jscher2000
  • Top 10 Contributor
8763 solutions 71700 answers

I forgot about the alt="alt text" issue. When I add that to my test page, the placeholders are replaced by the alt text (naturally).

I forgot about the alt="alt text" issue. When I add that to my test page, the placeholders are replaced by the alt text (naturally).

Question owner

jscher2000 said

I forgot about the alt="alt text" issue. When I add that to my test page, the placeholders are replaced by the alt text (naturally).

I think it is not natural. Chrome shows icon AND alt text together. I want such behavior in firefox.

''jscher2000 [[#answer-1211860|said]]'' <blockquote> I forgot about the alt="alt text" issue. When I add that to my test page, the placeholders are replaced by the alt text (naturally). </blockquote> I think it is not natural. Chrome shows icon AND alt text together. I want such behavior in firefox.
jscher2000
  • Top 10 Contributor
8763 solutions 71700 answers

Helpful Reply

One workaround would be to apply the style rule from the lower part of the demo page, or a variation of the rule, to all pages. This can be done using either an add-on such as Stylus or by creating an optional userContent.css file.

Or if you aren't in a hurry, you can submit comments and suggestions for feature changes through one or more of the following links:

One workaround would be to apply the style rule from the lower part of the demo page, or a variation of the rule, to all pages. This can be done using either an add-on such as Stylus or by creating an optional userContent.css file. Or if you aren't in a hurry, you can submit comments and suggestions for feature changes through one or more of the following links: * Feedback: https://qsurvey.mozilla.com/s3/FirefoxInput/ * Discourse: https://discourse.mozilla.org/c/firefox-development * Reddit: https://www.reddit.com/r/firefox/ * Twitter: https://twitter.com/firefox * Facebook: https://www.facebook.com/Firefox