Description[css-grid] Percentage columns can always be resolved during layout
The issue is that the inline size of the grid container
is only indefinite while we're computing the intrinsic sizes.
During layout we should be able to resolve the percentage tracks
against that size.
This makes Grid Layout compatible with regular blocks regarding
how inline percentages are resolved.
The patch passes the SizingOperation enum to LayoutGrid::gridTrackSize().
That way we can know if we're computing the intrinsic sizes or not.
It also gets rid of LayoutBox::hasDefiniteLogicalWidth()
as it was wrong and not needed actually.
Created a new test verifying the expected behavior. Updated the results
in a few tests too.
BUG=616716
TEST=fast/css-grid-layout/grid-container-percentage-columns.html
Committed: https://crrev.com/3043a48f261b5d1b4f175a2a8f2373ac22ae41f1
Cr-Commit-Position: refs/heads/master@{#398535}
Patch Set 1 #Patch Set 2 : New version using SizingOperation enum #
Total comments: 4
Patch Set 3 : Rebased version after https://codereview.chromium.org/2030803003/ #Patch Set 4 : Remove hasDefiniteLogicalSize() #Patch Set 5 : Get rid of hasDefiniteLogicalWidth() #
Total comments: 8
Patch Set 6 : Minor fixes on tests #Messages
Total messages: 21 (7 generated)
|