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

Remove ResponsiveBackground component #109

Merged
merged 1 commit into from
Jan 22, 2021
Merged

Remove ResponsiveBackground component #109

merged 1 commit into from
Jan 22, 2021

Conversation

simonihmig
Copy link
Owner

@simonihmig simonihmig commented Jan 22, 2021

Support for responsive images in browsers is limited, you cannot have all the possibilities of the browser picking the best supported file format and size, as <picture> and srcset combined can do. With the object-fit CSS property you can still create a <img> that behaves like a background. For now this is left to the user to implement, as we need to concentrate on getting the next-gen version of plain images working.

Closes #87

/cc @andreasschacht @lolmaus

Support for responsive images in browsers is limited, you cannot have all the possibilities of the browser picking the best supported file format *and* size, as `<picture>` and `srcset` combined can do. With the `object-fit` CSS property you can still create a `<img>` that behaves like a background. For now this is left to the user to implement, as we need to concentrate on getting the next-gen version of plain images working.
@simonihmig simonihmig merged commit 967eb9f into dev-v2 Jan 22, 2021
@simonihmig simonihmig deleted the rem-bg branch January 22, 2021 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant