Orthogonal grid item has incorrect intrinsic contribution to grid container's inline size
Categories
(Core :: Layout: Grid, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
(Blocks 1 open bug)
Details
(Whiteboard: [grid-percentages:m1], [wptsync upstream])
Attachments
(7 files)
|
496 bytes,
text/html
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
I'm looking at the behavior difference between Chrome and Firefox of this reftest https://searchfox.org/mozilla-central/rev/c329cccde3e1e6f5d71d87c62b3db7e9f5fecb3c/layout/reftests/css-grid/grid-item-sizing-percent-004.html
Attached a reduced testcase from the above reftest.
| Assignee | ||
Updated•10 months ago
|
Updated•10 months ago
|
| Assignee | ||
Comment 1•10 months ago
|
||
When creating ReflowInput for grid items, the grid container always pass
customized containing block size [1], so ReflowInput constructor should
account for this in the orthogonal scenarios.
Updated•10 months ago
|
| Assignee | ||
Comment 2•10 months ago
|
||
GridReflowInput::PercentageBasisFor() considers track sizes, and resolve
correct percentage basis for a grid item if a given axis has a definite track
size.
The aPercentageBasis argument on ContentContribution() is computed in
CachedIntrinsicSizes constructor [1].
This patch also updates the documentation for PercentageBasisFor().
Specifically, delete the description of the implementation details that
described the legacy behavior, i.e.
layout.css.grid-multi-pass-track-sizing.enabled=false.
| Assignee | ||
Comment 3•10 months ago
|
||
| Assignee | ||
Comment 4•10 months ago
|
||
| Assignee | ||
Comment 5•10 months ago
|
||
After Part 1 and Part 2, grid-size-with-orthogonal-child-001.html passes
regardless of layout.css.grid-multi-pass-track-sizing.enabled preference.
| Assignee | ||
Comment 6•10 months ago
|
||
After Part 2, cbSize is initialized from aPercentageBasis, which will
contain a definite column size occupied by the grid item, if it is resolvable.
Therefore, we don't need to resolve the column size again in
ContentContribution().
This patch does not change behavior.
| Assignee | ||
Updated•10 months ago
|
Comment 10•10 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/689d379c3891
https://hg.mozilla.org/mozilla-central/rev/70bf8cc7f24d
https://hg.mozilla.org/mozilla-central/rev/0bf72b949a22
https://hg.mozilla.org/mozilla-central/rev/d33518bccc0e
https://hg.mozilla.org/mozilla-central/rev/439deeba0e48
https://hg.mozilla.org/mozilla-central/rev/320fe0da2b9f
Updated•9 months ago
|
Description
•