Closed Bug 1791458 Opened 2 years ago Closed 2 years ago

Remove the workaround for replaced elements when computing flex base size

Categories

(Core :: Layout: Flexbox, task)

task

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

References

Details

Attachments

(1 file)

See the upcoming patch for the details.

After bug 1340715, we use the same path [1] when computing auto and
max-content inline-sizes for replaced elements in
nsContainerFrame::ComputeSizeWithIntrinsicDimensions(). For block-sizes,
'max-content' and 'auto' already have the same behavior.

This patch shouldn't change the behavior.

[1] https://searchfox.org/mozilla-central/rev/6d7704caae2a61b0101bdb67481a80af20376663/layout/generic/nsContainerFrame.cpp#2354-2355

Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/5ede133066a3 Remove auto main-size workaround for replaced elements when computing flex base size. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: