Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Firefox doesn't apply flex-basis if children have larger image #41

Closed
walidvb opened this issue May 5, 2015 · 4 comments
Closed

Firefox doesn't apply flex-basis if children have larger image #41

walidvb opened this issue May 5, 2015 · 4 comments

Comments

@walidvb
Copy link

walidvb commented May 5, 2015

When a flex element has a child img that is larger than itself, flex-basis is ignored. Better illustrated:

http://jsfiddle.net/walidvb/hsm77su5/7/

The workaround i found was to not use flex-basis, but width instead(which kind of defeats the whole purpose.)

@jpdevries
Copy link

hm, try this
http://codepen.io/jpdevries/pen/waeNze

i had to set a min-width:0 on .flex-item which is something that has been discussed here
#39 (comment)

@elliottregan
Copy link

This also fixed a similar issue in Chrome 57.0.2987.98 (64-bit).

@philipwalton
Copy link
Owner

I think this issue has been resolved. Feel free to comment if there's more to discuss.

@kmvan
Copy link

kmvan commented Jan 14, 2018

child's css:
flex: 0 0 100px;

if child's width large than 100px, the limit not works, needs to set "width: 100px" to fix....

In firefox 52 esr, width: 100px not works also.

markhepburn added a commit to IMASau/Seamap that referenced this issue Feb 13, 2018
Closes SM-108.  See
philipwalton/flexbugs#41 (I was using
width:0 though, which didn't seem to work on firefox)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants