Closed
Bug 1936370
Opened 1 year ago
Closed 1 year ago
Fix the flex item's stretched cross-size when computing flex container's intrinsic inline size
Categories
(Core :: Layout: Flexbox, defect)
Core
Layout: Flexbox
Tracking
()
RESOLVED
FIXED
135 Branch
| Tracking | Status | |
|---|---|---|
| firefox135 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
Details
Attachments
(2 files)
Bug 1742042 fixed the flex item's stretched cross-size when computing the flex container's intrinsic size. However, the code has two issues:
| Assignee | ||
Comment 1•1 year ago
|
||
This patch extracts the logic from FlexItem's constructor that computes the
used align-self value of a flex item, with legacy -webkit-box-align
considered. The new helper is then used in ComputeIntrinsicISize().
Updated•1 year ago
|
Assignee: nobody → aethanyc
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•1 year ago
|
||
When the flex item has 'box-sizing:border-box', we should subtract its margin
from the stretched cross size.
The testcase is adapted from aspect-ratio-intrinsic-size-008.html, with
"box-sizing:border-box" added to the flex item.
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/1658b53c6682
Part 1 - Fix legacy flex container cross size alignment when computing intrinsic inline size. r=dholbert
https://hg.mozilla.org/integration/autoland/rev/c9a7242c12e3
Part 2 - Fix flex item's stretched cross size with box-sizing:border-box when computing flex container's intrinsic inline size. r=dholbert
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/49665 for changes under testing/web-platform/tests
https://hg.mozilla.org/mozilla-central/rev/1658b53c6682
https://hg.mozilla.org/mozilla-central/rev/c9a7242c12e3
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox135:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in
before you can comment on or make changes to this bug.
Description
•