flexbugs icon indicating copy to clipboard operation
flexbugs copied to clipboard

Chrome & Firefox inconsistently handle flex-direction: column

Open thomassuckow opened this issue 9 years ago • 4 comments

https://jsfiddle.net/thomassuckow/ebu59jxe/

Expected: screen shot 2016-02-10 at 8 56 07 am

Actual: screen shot 2016-02-10 at 8 56 20 am

What is weird is in chrome, resizing vertically and sometimes on load chrome shows what I expect. Resizing horizontally or printing triggers the actual behaviour. Firefox always shows actual.

thomassuckow avatar Feb 10 '16 16:02 thomassuckow

Have you reported this bug to Chrome? http://chromiumbugs.appspot.com/

Since the layout changes when you resize the browser, it seems like it's just a layout bug in Chrome and there's not going to be a workaround.

philipwalton avatar Feb 12 '16 03:02 philipwalton

I havn't yet. Partially because I am not certain what I expected is correct, because it isn't what Firefox does either.

And also because I am seeing some other behaviours that I haven't tried to isolate yet and they could be the same issue manifesting in a different way or a different issue altogether.

In my experience unless you bug is very clear cut it will never get triaged on chromiumbugs. I was hoping maybe others had seen this behaviour here and could help me narrow down how it truly 'should' behave and as much as possible about what it triggering it not to behave that way so we can file bugs in the appropriate places.

thomassuckow avatar Feb 12 '16 16:02 thomassuckow

I was wondering if using JavaScript to trigger a resize event could be a potential hacky work around but it seemed to have no effect

window.dispatchEvent(new Event('resize'));

jpdevries avatar Feb 12 '16 20:02 jpdevries

@thomassuckow @philipwalton @jpdevries
https://jsfiddle.net/ebu59jxe/2/ I tried an workaround to match Expected ... I added align-content: flex-start and fill width using calc

asvny avatar Mar 16 '16 15:03 asvny