Description[css-grid] Implement fit-content track size
This CL implements the new <fit-content> track size which is defined as
follows: "Represents the formula min(max-content, max(auto, argument)),
which is calculated similar to auto (i.e. minmax(auto, max-content)), except
that the track size is clamped at argument if it is greater than the auto
minimum."
From the parsing POV fit-content was implemented as a new type of function
which only takes one argument. That forced us to refactor some code because
minmax() was the only allowed function for <track-size>s so far.
The implementation key is a new attribute in GridTrack called growthLimitCap
which is precisely the attribute of fit-content(). Some parts of the track sizing
algorithm were adapted to this change like for example the sorting of tracks by
growth potential (we need to consider the caps).
BUG=618972
Committed: https://crrev.com/1993c05386140afe56921048784bf3ca449f4b63
Cr-Commit-Position: refs/heads/master@{#415676}
Patch Set 1 #
Total comments: 36
Patch Set 2 : Patch for landing #Messages
Total messages: 18 (7 generated)
|