-
Notifications
You must be signed in to change notification settings - Fork 496
Firefox image shrink bug fixed with min-width (IE11 too but needs even more) #138
Comments
Running Firefox 45.0.1 seems to not need the min-width. If I just add |
There are problems with overflow:hidden though. If you position something outside the containing box it would not show up. But as IE11 needs it anyway min-width is not needed and I think even older Firefoxes are content with using overflow. In the future using min-width would be better as not as intrusive as hiding all overflowing stuff. Guess this will be years though as IE11 will be with us for some time :( |
I'm not seeing this bug, has it been fixed in the new version of FF? Can you still reproduce it? |
I've never seen this issue in any version of Firefox. |
This bug occured because of the interaction between flex-box on the surrounding container and min-width/max-width. Setting the flex-basis property on the image leads to the image correctly picking up width/height again. See also: philipwalton/flexbugs#138
Hi am facing this issue on Firefox version : 77.0.1 (64-bit). The image shrinks. ChaitanyaGadodia/blog#4 if you want to replicate. Adding |
While reading http://dfmcphee.com/2016/03/flex-items-and-min-width-0/ I thought this may be a workaround for the bug in Firefox (tested on Win10 only but guess all platforms).
Demo page http://jsbin.com/bijate/edit
Edge and Chrome shrink the image (img needs max-width: 100% which is quite normal for RWD pages) as expected into the flexbox.
Without setting min-width to a small size (like 0) Firefox does not and stretches its containing box to fit the complete image. overflow: hidden does work too and actually IE11 does need setting this as min-width alone does not work in IE11.
Or did I miss something and already in list of flexbugs? Thanks.
The text was updated successfully, but these errors were encountered: