Chromium Code Reviews
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 #
Messages
Total messages: 9 (3 generated)
|
|||||||||||||||||||||||||||||||||||||