| Index: third_party/WebKit/Source/core/layout/LayoutGrid.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
|
| index 7bf340f7cfcc26b830b9dddb86589a4ab5cefcb3..d2ac0a2984c12463dfef8c452360135a4ffea4f6 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
|
| @@ -750,7 +750,7 @@ GridTrackSize LayoutGrid::gridTrackSize(GridTrackSizingDirection direction, size
|
|
|
| // If the logical width/height of the grid container is indefinite, percentage values are treated as <auto>.
|
| // For the inline axis this only happens when we're computing the intrinsic sizes (AvailableSpaceIndefinite).
|
| - if (sizingOperation == IntrinsicSizeComputation || (direction == ForRows && !hasDefiniteLogicalHeight())) {
|
| + if ((sizingOperation == IntrinsicSizeComputation) || (direction == ForRows && firstInFlowChildBox() && !firstInFlowChildBox()->percentageLogicalHeightIsResolvable())) {
|
| if (minTrackBreadth.hasPercentage())
|
| minTrackBreadth = Length(Auto);
|
| if (maxTrackBreadth.hasPercentage())
|
|
|