<img> display `alt` values when loading
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect, P3)
Tracking
()
People
(Reporter: 709922234, Unassigned)
References
()
Details
Attachments
(3 files)
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Updated•6 years ago
|
When the image is loading, it is displayed that the ALT text is a bad user experience. Is it possible to fix this problem?
v103.0a1 Can't reproduce on dribbble.
But it can still be reproduce on https://music.xianqiao.wang
(In reply to 709922234 from comment #3)
v103.0a1 Can't reproduce on dribbble.
But it can still be reproduce on https://music.xianqiao.wang
Wrong, nothing changed
Updated•3 years ago
|
Updated•3 years ago
|
Dribbble has updated their code. The image uploaded by the user no longer include alt text, but can still see alt text when the avatar is loaded.
Here is a simple example: https://cotton-speckled-henley.glitch.me/
Comment 6•4 months ago
|
||
As a user, I kind of prefer current behavior of Firefox.
Regardless, what does the W3C specification say regarding this?
Comment 7•4 months ago
|
||
https://justmarkup.com/notes/2016-01-20-showing-the-alternative-text-while-images-are-loading/
I guess there are users who prefer the Firefox behavior and want other browsers to follow.
And current behavior matches MDN description:
The HTMLImageElement property alt provides fallback (alternate) text to display when the image specified by the <img> element is not loaded.
This may be the case because of an error, because the user has disabled the loading of images, or because the image hasn't finished loading yet.
Source: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt
Problem is that spec defines:
alt - Replacement text for use when images are not available
Source: https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-alt
This means it's not clear if not yet loaded and failed to load are different things. They both mean 'not available'.
This problem seems to be for W3C to discuss and solve.
Description
•