Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Issue 2157093002: [css-flexbox] Apply min-height: auto to nested flexboxes again (Closed)

Created:
4 years, 5 months ago by cbiesinger
Modified:
4 years, 4 months ago
Reviewers:
dgrogan, eae
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-flexbox] Apply min-height: auto to nested flexboxes again I am now convinced that the original bug that made me add this was really https://codereview.chromium.org/1646413002 and we do not need this check. In particular, the main concern is that the child size we would use here is one that was calculated based on a previous stretched height. However, childHasIntrinsicMainAxisSize returns true for a min-height: auto in an orthogonal flow (=the case where that would be an issue), and in that case we make sure to force a layout in computeNextFlexLine. Therefore, any size we use here will be up-to-date and this should be safe. BUG=596743 R=eae@chromium.org,dgrogan@chromium.org TEST=css3/flexbox/nested-flexbox-min-size-auto.html

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -10 lines) Patch
M third_party/WebKit/LayoutTests/css3/flexbox/nested-flexbox-min-size-auto.html View 1 chunk +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp View 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
cbiesinger
4 years, 5 months ago (2016-07-18 19:44:24 UTC) #1
cbiesinger
Hm no, bug 580196's original testcase does fail with this patch. I'll have to keep ...
4 years, 5 months ago (2016-07-18 19:53:06 UTC) #4
eae
On 2016/07/18 19:53:06, cbiesinger wrote: > Hm no, bug 580196's original testcase does fail with ...
4 years, 5 months ago (2016-07-18 20:04:18 UTC) #5
cbiesinger
On 2016/07/18 20:04:18, eae wrote: > On 2016/07/18 19:53:06, cbiesinger wrote: > > Hm no, ...
4 years, 5 months ago (2016-07-19 18:01:42 UTC) #9
eae
On 2016/07/19 18:01:42, cbiesinger wrote: > On 2016/07/18 20:04:18, eae wrote: > > On 2016/07/18 ...
4 years, 4 months ago (2016-08-09 21:37:41 UTC) #10
cbiesinger
4 years, 4 months ago (2016-08-10 00:51:10 UTC) #11
On 2016/08/09 21:37:41, eae wrote:
> On 2016/07/19 18:01:42, cbiesinger wrote:
> > On 2016/07/18 20:04:18, eae wrote:
> > > On 2016/07/18 19:53:06, cbiesinger wrote:
> > > > Hm no, bug 580196's original testcase does fail with this patch. I'll
have
> > to
> > > > keep investigating this. Please hold off on reviewing.
> > > 
> > > OK
> > 
> > OK, the problem is that we only layout the child if it was marked as needing
> > layout. But it won't be marked as needing layout in this case because it
> didn't
> > change. Options are:
> > - Force layout in such a case, ie. if (childHasIntrinsicMainAxisSize(*child)
> &&
> > toLayoutBlock(*child).hasPercentHeightDescendants())
> > - Implement bug 581553, at least for min-height purposes, and use that
> > 
> > Have to think about this some.
> 
> Do you still want to proceed with this change?

No, let me close this. This is clearly a longer-term thing.

Powered by Google App Engine
This is Rietveld 408576698