зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1348857 part 3 - [css-grid] Only apply Automatic Minimum Size when the ApplyAutoMinSize bit is set, otherwise the minimum size is zero unless specified. r=dholbert
MozReview-Commit-ID: 40Rgcj0YZMm
This commit is contained in:
Родитель
c02d9817f3
Коммит
15a9399d44
|
@ -5071,7 +5071,7 @@ nsFrame::ComputeSize(nsRenderingContext* aRenderingContext,
|
|||
ComputeISizeValue(aRenderingContext, aCBSize.ISize(aWM),
|
||||
boxSizingAdjust.ISize(aWM), boxSizingToMarginEdgeISize,
|
||||
minISizeCoord, aFlags);
|
||||
} else if (MOZ_UNLIKELY(isGridItem)) {
|
||||
} else if (MOZ_UNLIKELY(aFlags & eIApplyAutoMinSize)) {
|
||||
// This implements "Implied Minimum Size of Grid Items".
|
||||
// https://drafts.csswg.org/css-grid/#min-size-auto
|
||||
minISize = std::min(maxISize, GetMinISize(aRenderingContext));
|
||||
|
|
Загрузка…
Ссылка в новой задаче