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

Handling of min-height/width with flex-basis: 0% is inconsistent #120

Open
akrawitz opened this issue Jan 20, 2016 · 3 comments
Open

Handling of min-height/width with flex-basis: 0% is inconsistent #120

akrawitz opened this issue Jan 20, 2016 · 3 comments

Comments

@akrawitz
Copy link

Refer to http://codepen.io/anon/pen/xZPobW

I have a 200px by 200px flexbox in a column with two items that both have flex: 1 1 0%. The second item also has min-height: 100px. In Chrome/Firefox/Safari/Opera, the min-height is not considered when calculating the flex allocation (so the two items are both 100px tall), whereas, in IE 11, the min-height is subtracted out and only the difference is used in the flex allocation (so item 1 is 50px tall and item 2 is 150px tall). See Example 1 in the Pen.

The same thing happens with a row and min-width. See Example 2 in the Pen.

@philipwalton
Copy link
Owner

Hmmm, yeah, it looks like IE11 treats the min size declaration as the items initial starting size and calculates free space after that.

Have you discovered a workaround?

@JacobDB
Copy link

JacobDB commented Dec 4, 2017

I'm seeing something very similar, I haven't been able to figure out any workaround. Can this be added to the flexbug list, or do we need to discover a workaround before that can be done?

https://codepen.io/JacobDB/pen/BmbOao

@philipwalton
Copy link
Owner

@JacobDB I don't add bugs to the list unless there's a workaround. Otherwise the list would just be a bug aggregate, and I want it to be a solutions list instead.

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

3 participants