N
N
Nikolai Polukhin2016-01-26 15:47:11
css
Nikolai Polukhin, 2016-01-26 15:47:11

How to adjust img size when using flexbox in Chrome 48.0.2564.82?

Good afternoon, I updated from version 47 of chrome to 48.0.2564.82, and noticed its strange behavior with images that are in a container with display: flexbox.
More specifically, the proportional dimensions of the image are not calculated. Let's say we have an image 40x40 and we give it a width of 20, then the height will automatically become 20 (if not predefined), in the 48 version of chrome, the height is not set like that and we have 20x40. This is typical if the image is in a container with flex.
Here is a codepen with an example.
Screenshot from my version of chrome.
Is this a chrome bug or css bug?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay Polukhin, 2016-01-27
@Gazaret

Status of this bug on the bug tracker

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question