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

Issue 2216903004: [css-flexbox] Correctly implement contain: size on a flex item (Closed)

Created:
4 years, 4 months ago by cbiesinger
Modified:
4 years, 4 months ago
Reviewers:
ojan, dgrogan, eae, Tab Atkins
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] Correctly implement contain: size on a flex item This patch has a few changes: - childIntrinsicLogicalHeight should not use the intrinsic content height for a contain: strict flex item -- if we don't have a definite size, we should treat its height as zero. And needToStretchChildLogicalHeight only returns true for an auto-height flex item. - computeInnerFlexBaseSizeForChild does not need to trigger a layout for an indefinite flex basis -- those are just zero for contain: size elements. - min-height: auto computes to 0 for contain: size - flex items should not be layout roots even if they could otherwise be a root as they may need to be stretched by their parent, even if they are contain: strict. I have not managed to construct a testcase that fails but I don't see how that could be correct. Please verify that my understanding of the containment spec is correct! BUG=621054 R=eae@chromium.org,tabatkins@chromium.org,ojan@chromium.org,dgrogan@chromium.org Committed: https://crrev.com/9d0095399ecfcb085e929a7d89e8db3db7a9bbf3 Cr-Commit-Position: refs/heads/master@{#410370}

Patch Set 1 #

Patch Set 2 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -5 lines) Patch
A third_party/WebKit/LayoutTests/css3/flexbox/flex-item-contains-strict.html View 1 chunk +49 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp View 1 4 chunks +11 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
cbiesinger
4 years, 4 months ago (2016-08-05 21:52:24 UTC) #1
cbiesinger
Also note, patch depends on https://codereview.chromium.org/2216133003/ so I can't send it to the tryserver yet.
4 years, 4 months ago (2016-08-05 21:52:49 UTC) #2
eae
LGTM
4 years, 4 months ago (2016-08-08 13:00:46 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2216903004/20001
4 years, 4 months ago (2016-08-08 14:41:33 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-08 16:08:30 UTC) #7
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 16:10:28 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9d0095399ecfcb085e929a7d89e8db3db7a9bbf3
Cr-Commit-Position: refs/heads/master@{#410370}

Powered by Google App Engine
This is Rietveld 408576698