Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vertical-align and alt text #66

Open
tigt opened this issue Sep 16, 2019 · 1 comment
Open

vertical-align and alt text #66

tigt opened this issue Sep 16, 2019 · 1 comment

Comments

@tigt
Copy link

tigt commented Sep 16, 2019

Originally from #14:

I ran into an issue recently with img { vertical-align: middle } at work.

If an image breaks and falls back to its alt text, a vertical-align other than baseline produces different behavior across browsers. Here’s a CodePen to demonstrate.

  • Older (current?) versions of Firefox have the alt text dip below the baseline
  • As of Firefox Nightly 71.0a1, though, the changing of vertical-align appears to be ignored and the text flows on the same baseline, which seems ideal to me.
  • Chrome has the same problem as older Firefox, along with a broken image icon

Is it worth trying to fix this problem with selectors specifically for alt text? (Like img:is(:-moz-broken, :-moz-loading, :-moz-user-disabled))

@Malvoz
Copy link
Contributor

Malvoz commented Oct 2, 2019

This could hopefully be handled using standardized properties in the future, see related issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants