Issue metadata
Sign in to add a comment
|
Flexbox divs containing images are cut in half if used with columns
Reported by
vertical...@gmail.com,
Dec 17
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 Steps to reproduce the problem: Create parent div with two columns layout. Add 3 children divs with "display:flex; justify-content: center; align-items: center;" and inside each div image with "display: block; width: 100%;" I attached file for easier reproduction. What is the expected behavior? Picture 1 and 2 should be in 1st column and picture 3 should be in 2nd column. What went wrong? Picture 2 is cut in half, upper half is in column 1, bellow picture 1 and lower half is in column 2, above picture 3. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 71.0.3578.98 Channel: stable OS Version: 10.0 Flash Version:
,
Dec 17
,
Dec 17
,
Dec 18
Flexbox block fragmentation support is very limited. We currently only support breaking *inside* flex items (and there's no good break opportunity inside items in the attached test case, so we end up with slicing images, which is bad when avoidable (it *is* avoidable)). We have no mechanism to propagate the implicit break *before* the flexbox, which would have made the test case render properly. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by woxxom@gmail.com
, Dec 17