Description[css-grid] Fix static position of positioned grid items
Modify LayoutGrid::prepareChildForPositionedLayout() to avoid
including padding, to match the behavior described on the spec [1]:
"The static position of an absolutely-positioned child
of a grid container is determined as if it were the sole grid item
in a grid area whose edges coincide with the padding edges
of the grid container."
The test is updated as the expected results were wrong.
Note that after this patch we match Firefox behavior on this test.
BUG=273898
TEST=fast/css-grid-layout/absolute-positioning-grid-container-parent.html
[1] https://drafts.csswg.org/css-grid/#static-position
Review-Url: https://codereview.chromium.org/2665983004
Cr-Commit-Position: refs/heads/master@{#447491}
Committed: https://chromium.googlesource.com/chromium/src/+/13f00a7b6a700f280ec590e654cdbf223c510a45
Patch Set 1 #
Messages
Total messages: 9 (4 generated)
|