mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +09:00
Issue #1233 - Part 2: Update Reftests
List of relevant patches applied: 1425599 part 15 - [css-grid] Test reference fixes + more tests. 1373678 Part 3: Add line number checks to test_grid_implicit.html. 1416350 - Part 3: Add test to verify line numbers of grids with leading implicit tracks. 1416350 - Part 4: Add a reftest of repeat:auto-fit grids with leading implicit tracks. 1417711 - [css-grid] An abs.pos. grid container child that only covers removed 'auto-fit' tracks should not span to the end padding edge. 1416350 - Part 5: Correct the expected results for grids that have leading implicit tracks. 1418727 part 3 - [css-grid] Reftest updates.
This commit is contained in:
parent
f22ad944b7
commit
1f9d16132b
22 changed files with 4150 additions and 145 deletions
|
|
@ -725,9 +725,6 @@ struct nsGridContainerFrame::LineRange
|
|||
mEnd > mStart, "invalid line range");
|
||||
mEnd -= aNumRemovedTracks[mEnd];
|
||||
}
|
||||
if (mStart == mEnd) {
|
||||
mEnd = nsGridContainerFrame::kAutoLine;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Return the contribution of this line range for step 2 in
|
||||
|
|
@ -5179,10 +5176,15 @@ nsGridContainerFrame::LineRange::ToPositionAndLengthForAbsPos(
|
|||
: GridLineSide::eBeforeGridGap;
|
||||
nscoord endPos = aTracks.GridLineEdge(mEnd, side);
|
||||
*aLength = std::max(aGridOrigin + endPos, 0);
|
||||
} else {
|
||||
} else if (MOZ_LIKELY(mStart != mEnd)) {
|
||||
nscoord pos;
|
||||
ToPositionAndLength(aTracks.mSizes, &pos, aLength);
|
||||
*aPos = aGridOrigin + pos;
|
||||
} else {
|
||||
// The grid area only covers removed 'auto-fit' tracks.
|
||||
nscoord pos = aTracks.GridLineEdge(mStart, GridLineSide::eBeforeGridGap);
|
||||
*aPos = aGridOrigin + pos;
|
||||
*aLength = nscoord(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue