Automatic update from web-platform-tests[css-grid] Fix resolution of percentage paddings and margins of grid items We were not resolving properly percentage paddings and margins for tracks that have something like minmax(auto, 100px). The reason was that while computing the minimum size of a grid item, the percentages were resolved against the inline size of the grid container. But for grid items we shouldn't never use the grid container size, but the grid area size, as that's their containing block. The patch modifies ContainingBlockLogicalWidthForContent() and ContainingBlockLogicalHeightForContent() in LayoutBox, so for grid items we return 0 if the area size hasn't been set yet. We never want to use the grid container's sizes in these cases. BUG=808758 TEST=external/wpt/css/css-grid/grid-items/grid-items-percentage-margins-* TEST=external/wpt/css/css-grid/grid-items/grid-items-percentage-paddings-* Change-Id: Ib142e51aee1fe623d38688469b179f01f82eb07b Reviewed-on: https://chromium-review.googlesource.com/980756 Reviewed-by: Javier Fernandez <jfernandez@igalia.com> Commit-Queue: Manuel Rego Casasnovas <rego@igalia.com> Cr-Commit-Position: refs/heads/master@{#547417} wpt-commits: e4efc10a82630de47f920a737aa8ea94845191af wpt-pr: 10194 wpt-commits: e4efc10a82630de47f920a737aa8ea94845191af wpt-pr: 10194
CSS Grid Layout Module Level 1 Test Suite
Directory containing the CSS Grid Layout spec test suite.
This suite is structured in different folders for each section of the spec (the name of the folders corresponds to the "id" of each section):
- 3 Grid Containers:
grid-model - 4 Grid Items:
grid-items - 5 The Explicit Grid:
grid-definition - 6 The Implicit Grid:
implicit-grids - 7 Grid Definition Shorthand:
grid-shorthand - 8 Clamping Overlarge Grids:
overlarge-grids - 9 Placing Grid Items:
placement - 10 Absolute Positioning:
abspos - 11 Alignment and Spacing:
alignment - 12 Grid Sizing:
layout-algorithm - 13 Fragmenting Grid Layout:
pagination
Links: