[css-flex] Flexed item contains image doesn't keep aspect ratio with flex: auto and flex-wrap: wrap
Reported by
utasirob...@gmail.com,
Apr 2 2017
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36 Steps to reproduce the problem: Testcase attached : https://jsfiddle.net/utasir/t0a1dnq1/2/ oversized images with object-fit fixed height on parent 100px, 100% height on image (this part is good) 100% width on image (this is wrong, doesnt keep aspect ratio and cummulates the flex item as 100% of flex container instead of flex item) What is the expected behavior? For the expected behaviour check testcase on firefox What went wrong? The layout doesn't show as a horizontal stretched masonry layout Did this work before? N/A Does this work in other browsers? Yes Chrome version: 57.0.2987.98 Channel: canary OS Version: 10.0 Flash Version: I've checked the reported issues related to flexbox, so this issue is very similar (dupe?) than others with aspect ratio but noone was with flex-wrap, so I file a separated issue for it.
,
Apr 3 2017
more precisely the workaround is : https://jsfiddle.net/utasir/5uzba75x/1/ where the height also comes from the parent (flex-item).
,
Apr 3 2017
,
Apr 3 2017
Thanks for the report, this is reproducible on Win 10,Ubuntu 14.04 and Mac 10.12.4 using stable 57.0.2987.133 and canary 59.0.3061.0. Its a non-regression issue since 40.0.2190.0.
,
Apr 3 2017
Over to cbiesinger for further triage. |
||||
►
Sign in to add a comment |
||||
Comment 1 by utasirob...@gmail.com
, Apr 3 2017