New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 588469 link

Starred by 3 users

Issue metadata

Status: WontFix
Closed: Aug 2017
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Blocked on:
issue 507397

Sign in to add a comment

max-content width of wrapped column flexbox incorrect [specifically for nested flexbox]

Project Member Reported by, Feb 21 2016

Issue description

Version: 50.0.2655.0
OS: Windows 10

Test case at,output

According to Tab, my expectations of the gray box appearing after the third column are correct per spec. Apparently Safari does this as I expected:

Edge and Firefox behave as Chrome does and show the gray box after the first column.
Blockedon: 507397
Hmm this is an interesting variant of bug 507397 (it doesn't require a nested flexbox)

It's very strange that Safari handles this correctly though. It seems like their corresponding code,, also uses maxPreferredLogicalWidth and should have the same issue

Oh, their preferred width calculation is messed up:
119	                // For multiline, the max preferred width is if you never break between items.
120	                maxLogicalWidth += maxPreferredLogicalWidth;

That code calculates if you *always* break between items!! We fixed that in  bug 247963 , but we can't handle this case. We could handle this better in the specific case of a nested flexbox, but in general this is hard.

Comment 2 by, Feb 23 2016

Status: Assigned (was: Untriaged)
Summary: max-content width of wrapped column flexbox incorrect [specifically for nested flexbox] (was: Flexed item's width is not computed correctly if it itself is a flexbox)

Comment 4 by, Aug 1 2017

Status: WontFix (was: Assigned)
All browsers seem to agree on current behavior. Closing.

Sign in to add a comment