You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a badge does not load on crates.io the alt-text is shown but it appears to be part of the surrounding content. It should be distinguished in some way (eg. a smaller colored link). For example, imagine if both badges in the following screenshot had failed to load:
Could the badges not be moved into spans that are styled differently? Then if the image fails to render they wouldn't appear to be a part of the title.
This is definitely in control of crates.io, the badges are in the same <div class=info> as the crate name. Btw, why are those using div elements instead of title-related ones?
Activity
sgrif commentedon Jan 19, 2018
This is the behavior of the browser, not crates.io. I don't believe we have any control over this.
SamWhited commentedon Jan 19, 2018
Could the badges not be moved into spans that are styled differently? Then if the image fails to render they wouldn't appear to be a part of the title.
nox commentedon Jan 22, 2018
This is definitely in control of crates.io, the badges are in the same
<div class=info>
as the crate name. Btw, why are those usingdiv
elements instead of title-related ones?kornelski commentedon Aug 20, 2018
Text styles set on
<IMG>
affect rendering of the alt text.Turbo87 commentedon Apr 28, 2020
closing this issue due to #2440 being merged :)