[css-grid] Use AvailableSpace to detect grids with indefinite sizes
The spec considers flexible tracks as content-sized if the grid has an indefinite size. We were using FreeSpace to determine this case as part of the IsIntrinsicSizedGridArea, which is incorrect since that function returns a different value before, during and after running the tracks sizing algorithm. We use the IsIntrinsicSizedGridArea function to detect cyclic sizing dependencies in grid items, so that such items can participate in baseline alignment. Hence, using the FreeSpace function lead to inconsistent behavior in some cases, like the one described in the bug this CL tries to fix. Bug: 859374 Change-Id: Ifa90cdad6703c3b5e55a7230f85bc4ef63bf32d3 Reviewed-on: https://chromium-review.googlesource.com/1122217 Commit-Queue: Javier Fernandez <jfernandez@igalia.com> Reviewed-by:Sergio Villar <svillar@igalia.com> Cr-Commit-Position: refs/heads/master@{#571885}
Showing
Please register or sign in to comment