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

Is an 'alt' attribute required in img tags? #174

Closed
robsch opened this issue Nov 28, 2018 · 1 comment
Closed

Is an 'alt' attribute required in img tags? #174

robsch opened this issue Nov 28, 2018 · 1 comment

Comments

@robsch
Copy link

robsch commented Nov 28, 2018

My images don't get fetched and shown if I don't supply a non empty alt attribute. src is empty. Does it have anything to do with #155 - does the alt tag cause a min-height?

@robsch
Copy link
Author

robsch commented Jan 10, 2020

Seems so. If there is no initial height blazy does not work. Some text in the alt tag causes a certain heigt. But you can also create height with css: display: block; height: 100px;

@robsch robsch closed this as completed Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant