[wpt-sync] Sync PR 27153 - [GridNG] Small fix to gap resolution, and abspos container.
Categories
(Core :: Layout: Grid, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox86 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
Bug 1686483 [wpt PR 27153] - [GridNG] Small fix to gap resolution, and abspos container., a=testonly
48 bytes,
text/x-phabricator-request
|
Details | Review |
Sync web-platform-tests PR 27153 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/27153
Details from upstream follow.
b'Ian Kilpatrick <ikilpatrick@chromium.org>' wrote:
[GridNG] Small fix to gap resolution, and abspos container.
Previously we'd just use the intrinsic block-size to resolve gaps, and
abs-pos containing rects when we didn't know the block-size upfront.This was slightly incorrect as there might be a min/max size constraint
growing or shrinking this final size.This patch moves the call to ComputeBlockSizeForFragment into
PlaceItems. As a result of this there are a few small fixes:
- When we have an indefinite available-size, we resolve the grid-gap
against zero. (This was surprising to me grid-gutters-{010,011} was
testing this).- Abspos "default" size is correctly calculated based on the final
block-size (not intrinsic block-size).- Resolving gaps against the "resolved" available block-size (not the
intrinsic block-size). This correctly respects border/padding as
well.Bug: 1045599
Change-Id: I6be819b8eb254fe9e8eaee4d5a9caaa500a75601
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2624032
Commit-Queue: Ian Kilpatrick \<ikilpatrick@chromium.org>
Reviewed-by: Kurt Catti-Schmidt \<kschmi@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#842748}
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
CI Results
Ran 14 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 3 tests
Status Summary
Firefox
PASS: 3
Chrome
PASS: 3
Safari
PASS: 3
Links
Comment 4•5 years ago
|
||
Automatic update from web-platform-tests
[GridNG] Small fix to gap resolution, and abspos container.
Previously we'd just use the intrinsic block-size to resolve gaps, and
abs-pos containing rects when we didn't know the block-size upfront.
This was slightly incorrect as there might be a min/max size constraint
growing or shrinking this final size.
This patch moves the call to ComputeBlockSizeForFragment into
PlaceItems. As a result of this there are a few small fixes:
- When we have an indefinite available-size, we resolve the grid-gap
against zero. (This was surprising to me grid-gutters-{010,011} was
testing this). - Abspos "default" size is correctly calculated based on the final
block-size (not intrinsic block-size). - Resolving gaps against the "resolved" available block-size (not the
intrinsic block-size). This correctly respects border/padding as
well.
Bug: 1045599
Change-Id: I6be819b8eb254fe9e8eaee4d5a9caaa500a75601
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2624032
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Kurt Catti-Schmidt <kschmi@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#842748}
--
wpt-commits: 7021d50a11fa620c3beac449ef044590d9e0fd1d
wpt-pr: 27153
Comment 6•5 years ago
|
||
bugherder |
Description
•