Closed Bug 1792750 Opened 2 years ago Closed 1 year ago

[css-flexbox-1] Flex container baselines with reverse direction.

Categories

(Core :: Layout: Flexbox, defect)

defect

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: mozilla-apprentice, Assigned: TYLin)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

A resolution was made for csswg-drafts/#7776.

[css-flexbox-1] Flex container baselines with reverse direction.

  • RESOLVED: flex baselines take flex ordering into account so first/last use roughly *physical* directions

Discussion.

We've removed the ability to reverse flex container's axes internally in
bug 1639053.

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

This is the spec describing flex container baselines.
https://drafts.csswg.org/css-flexbox-1/#flex-baselines

  • Separate the cache for last baseline in FlexItem. This is needed beacuse we set
    an item's first baseline via SetAscent() after reflowing it. Any query to last
    baseline via ResolvedAscent(false) will wrongly return the first baseline.

  • We used to compute flex container baseline from the first item in
    ReflowChildren(). Now we consolidate all the logic computing flex container
    baseline in PopulateReflowOutput().

Depends on D181603

Duplicate of this bug: 1827481
Blocks: 1839944
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/89934b1a4eda
Part 1 - Remove an obsolete comment for FlexLine::LastBaselineOffset(). r=dholbert
https://hg.mozilla.org/integration/autoland/rev/347fcb9e0578
Part 2 - Pass FlexLayoutResult into PopulateReflowOutput(). r=dholbert
https://hg.mozilla.org/integration/autoland/rev/895103478cfa
Part 3 - Fix flex container baselines with reverse axes. r=dholbert
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: