mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 1458902 - [css-grid] Re-resolve row-gap against the sum of row track sizes for auto-sized grid containers. r=dholbert
Per CSSWG resolution in: https://github.com/w3c/csswg-drafts/issues/1921#issuecomment-342269371
This commit is contained in:
parent
abedb6c83d
commit
32dff95bd8
@ -5990,6 +5990,11 @@ nsGridContainerFrame::Reflow(nsPresContext* aPresContext,
|
|||||||
computedISize, bSize);
|
computedISize, bSize);
|
||||||
|
|
||||||
if (!prevInFlow) {
|
if (!prevInFlow) {
|
||||||
|
if (computedBSize == NS_AUTOHEIGHT && stylePos->mRowGap.HasPercent()) {
|
||||||
|
// Re-resolve the row-gap now that we know our intrinsic block-size.
|
||||||
|
gridReflowInput.mRows.mGridGap =
|
||||||
|
nsLayoutUtils::ResolveGapToLength(stylePos->mRowGap, bSize);
|
||||||
|
}
|
||||||
// Apply 'align/justify-content' to the grid.
|
// Apply 'align/justify-content' to the grid.
|
||||||
// CalculateTrackSizes did the columns.
|
// CalculateTrackSizes did the columns.
|
||||||
gridReflowInput.mRows.AlignJustifyContent(stylePos, wm, contentArea.Size(wm));
|
gridReflowInput.mRows.AlignJustifyContent(stylePos, wm, contentArea.Size(wm));
|
||||||
|
Loading…
Reference in New Issue
Block a user