Closed
Bug 690347
Opened 14 years ago
Closed 14 years ago
Flex box grows too much if 'white-space: nowrap' is used
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jasonparekh, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.21 Safari/535.2
Steps to reproduce:
http://jsfiddle.net/6F7KA/3/
A parent that is 'display: -moz-box'. Two children, the left is '-moz-box-flex: 1' and the right is fixed width. I never want the parent to be scrollable, regardless of the contents of the left child.
If I add 'white-space: nowrap' to the left child and set its text to something really long, the parent will scroll and my right child will get pushed into the scrollable area.
Actual results:
'white-space: nowrap' causes the flexed box to grow beyond its constraints.
Expected results:
The flexed box should have stayed within its constraints and resorted to overflow (which would have hidden).
![]() |
||
Comment 1•14 years ago
|
||
-moz-box elements do not normally overflow. flex is added to the default width, which is based on their contents.
So I believe this is invalid as filed....
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•