Closed
Bug 1380603
Opened 9 years ago
Closed 9 years ago
nested flexbox css is not working properly
Categories
(Core :: Layout, defect, P3)
Tracking
()
RESOLVED
INVALID
People
(Reporter: naseem1992, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Steps to reproduce:
flex-child(A) of a node (which is also a flex-child) does not scroll if we add css "overflow: hidden" on A.
This link (https://output.jsbin.com/qalumegeje) show to demo.
Try to open it in chrome, safari. You will only the item contrainer scrolls.
While when you open in Firefox, entire body scrolls, which is weird.
Actual results:
nested flex-child did not scroll with overflow: auto
Expected results:
nested flex-child should scroll with overflow: auto
| Reporter | ||
Updated•9 years ago
|
Summary: nested flexbox css sis not working properly → nested flexbox css is not working properly
Updated•9 years ago
|
Component: Untriaged → Layout
Product: Firefox → Core
Updated•9 years ago
|
Priority: -- → P3
Comment 1•9 years ago
|
||
We're following the spec here -- Chrome/Safari are not. This is a version of https://bugs.chromium.org/p/chromium/issues/detail?id=487302 on the Chrome/Safari end.
To get the behavior you want, you need to set "min-height:0" on the .content element, or else it will refuse to be any smaller than its min-content height. (This is a quirk of how flexbox works - each flex item has an "implied minimum size" which comes from its content.) Here's a modified jsfiddle, with that tweak - Firefox renders this how you expect:
https://jsbin.com/xaxefujaka/2/edit?html,css,output
I tested Microsoft Edge 15 on the original testcase and on this modified testcase, too, and they match Firefox.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
Updated•9 years ago
|
| Reporter | ||
Comment 2•9 years ago
|
||
Thanks
You need to log in
before you can comment on or make changes to this bug.
Description
•