Chromium Code Reviews
Description[css-grid] Fix definite height detection for auto-repet tracks
Previous code was considering that all positioned grid containers
with auto height have an indefinite height.
However if they have non-auto top and bottom properties,
the height is definite.
The patches uses LayoutBlock::hasDefiniteLogicalHeight() in
LayoutGrid::layoutBlock(). This is not fixing any bug,
but it's avoiding some unneeded calls, as we properly identify
the height as definite on the first step.
To fix the issue with auto-repeat tracks
LayoutGrid::computeAutoRepeatTracksCount() is modified in order to use
LayoutBlock::availableLogicalHeightForPercentageComputation().
That way the height of the grid container is properly calculated
and the number of repetitions is the right one.
Added a new test case to verify the expected behavior.
BUG=624301
TEST=fast/css-grid-layout/grid-auto-repeat-positioned-container.html
Committed: https://crrev.com/73bf22175e3b50c1c1c6d02d1858c9b60fee6b02
Cr-Commit-Position: refs/heads/master@{#416863}
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|
|||||||||||||||||||||||||||||||||||||