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

Docs: Specify that src will reference to the first declared size #101

Open
edgarshurtado opened this issue Jan 22, 2020 · 1 comment
Open

Comments

@edgarshurtado
Copy link

edgarshurtado commented Jan 22, 2020

Hi,

I'd like to contribute to improving the documentation for this great plugin.

It's only a detail but I haven't been able to find in the docs that if some sizes are set like [300, 600, 1200], the first one will be the one used for src attribute. So in my case, IE was using the 300px image instead of the bigger one. To fix this I had just to put 1200 as the first array element.

Could this be added to the docs?

Thank you!

@edgarshurtado
Copy link
Author

I've just realized that, by doing so, it totally breaks srcset...

There's any way to specify this?

Thank you!

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