[css-grid] Resolve grid-item’s percentage block size (with aspect-ratio) when computing grid container's intrinsic inline-size
Categories
(Core :: Layout: Grid, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox140 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [grid-percentages:m1])
Attachments
(2 files)
Currently, we compute only the grid column sizes when determining the grid container's intrinsic inline size [1]. We should also compute row sizes so that grid items with percentage block sizes can use the row sizes as a percentage basis.
Assignee | ||
Updated•6 months ago
|
Assignee | ||
Updated•6 months ago
|
Updated•6 months ago
|
Assignee | ||
Updated•5 months ago
|
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 1•4 months ago
|
||
The idea behind this patch is to allow grid items with percent-valued
block-sizes to resolve against definite grid rows and then transfer that
resolved block-size as their inline contribution to the grid container's
intrinsic inline-size.
Assignee | ||
Comment 2•4 months ago
•
|
||
Here are the modification to those reftests in our reftest framework. In these
sub-tests, the grid containers' widths become the same as their items' width,
and Firefox now has the same behavior as Google Chrome.
grid-auto-min-sizing-min-content-min-size-002-ref.html
: test 7, 8, and 9.grid-auto-min-sizing-min-content-min-size-004-ref.html
: test 4 and 6.grid-auto-min-sizing-transferred-size-002-ref.html
: test 8, 12, and 13.grid-auto-min-sizing-transferred-size-004-ref.html
: test 4 and 6.grid-min-content-min-sizing-transferred-size-002-ref.html
: test 8, 12, and 13.grid-min-content-min-sizing-transferred-size-004-ref.html
: test 4 and 6.
Note: grid-auto-min-sizing-transferred-size-002.html
is marked as fails
, and
this patch just change those sub-tests that have behavior change introduced by
this bug.
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Updated•4 months ago
|
https://hg.mozilla.org/mozilla-central/rev/0f4933db48c8
https://hg.mozilla.org/mozilla-central/rev/52bc4c80d65f
Updated•3 months ago
|
Description
•