Bug 1493642 [wpt PR 13184] - [css-grid] Fix percentages in relative offsets for grid...
commitb9515fedcffe844c2c8a2b1caaae2efea21822e5
authorManuel Rego Casasnovas <rego@igalia.com>
Thu, 11 Oct 2018 09:31:59 +0000 (11 09:31 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 12 Oct 2018 16:44:42 +0000 (12 16:44 +0000)
treee06231f3fe55fae8d3b04e3db87630ddefcf5b2b
parent29734c3c93878f25b7450e2b380839219692044c
Bug 1493642 [wpt PR 13184] - [css-grid] Fix percentages in relative offsets for grid items, a=testonly

Automatic update from web-platform-tests[css-grid] Fix percentages in relative offsets for grid items

The method LayoutBoxModelObject::RelativePositionOffset()
was not considering the case of grid items,
where the containing block is the grid area.
The patch modifies the method so the new code uses
OverrideContainingBlockContentLogicalWidth|Height when required.

Two new tests are added, the first one does not use percentages
and is already passing. The second one has the very same output
but using percentages which was not working before this patch.

BUG=835607
TEST=external/wpt/css/css-grid/grid-items/grid-items-relative-offsets-001.html
TEST=external/wpt/css/css-grid/grid-items/grid-items-relative-offsets-002.html

Change-Id: Icb76f4a521566ad36f87924835b21ae450f2cb24
Reviewed-on: https://chromium-review.googlesource.com/c/1238726
Reviewed-by: Javier Fernandez <jfernandez@igalia.com>
Commit-Queue: Manuel Rego <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#597543}

--
Fix lint by syncing all support/grid.css

--

wpt-commits: d66f26198d800f48078618eea47a9da20954f724907455e8cd08741745ad097e12806073c61830d2
wpt-pr: 13184
testing/web-platform/tests/css/css-grid/abspos/support/grid.css
testing/web-platform/tests/css/css-grid/grid-definition/support/grid.css
testing/web-platform/tests/css/css-grid/grid-items/grid-items-relative-offsets-001.html [new file with mode: 0644]
testing/web-platform/tests/css/css-grid/grid-items/grid-items-relative-offsets-002.html [new file with mode: 0644]
testing/web-platform/tests/css/css-grid/grid-items/support/grid.css
testing/web-platform/tests/css/css-grid/grid-model/support/grid.css
testing/web-platform/tests/css/support/grid.css