Open msrumon opened 2 years ago
This is because flex items do not have an explicit size. Fixe by making the .image elements flex items (eg flex: 1
).
Related, the .image component forces aspectratios by adding a percentual padding-top. Nowadays the css property aspect-ratio
could be used with full browser support, except IE11.
This is because flex items do not have an explicit size. Fixe by making the .image elements flex items (eg
flex: 1
).Related, the .image component forces aspectratios by adding a percentual padding-top. Nowadays the css property
aspect-ratio
could be used with full browser support, except IE11.
Can you elaborate
On what part?
Overview of the problem
Description
When I apply a responsive image ratios (
is-XbyX
classes) to an element havingimage
class, and that element is nested in a flexbox (direct child), the image is disappeared.Steps to Reproduce
Below is a sample snippet:
Expected behavior
Images should respect the responsive behavior.
Actual behavior
Images are disappeared.