Closed Bug 1744895 Opened 3 years ago Closed 3 years ago

justify-content:left/right doesn't work with vertical row-oriented flexbox and abspos children

Categories

(Core :: Layout: Flexbox, defect)

Firefox 91
defect

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

+++ This bug was initially created as a clone of Bug #1715661 +++

My patch in bug 1715661 is not complete. justify-content:left/right in vertical row-oriented flexbox maps to the wrong side.

For abspos children under flexbox, we failed this test https://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-vertWM-002.html

Summary: justify-content:left/right doesn't work with vertical row-oriented vertical writing modes → justify-content:left/right doesn't work with vertical row-oriented flexbox and abspos children
Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

Currently, we use IsPhysicalLTR() to query whether the start side of the
physical left <-> right axis. However, for vertical row-oriented flex
containers, physical left <-> right axis is its cross axis. We really should
query IsBidiLTR() instead because its main axis is parallel to line-left <->
line-right axis (i.e. inline axis).

flexbox-justify-content-wmvert-003.html is adapted from
flexbox-justify-content-wmvert-002.html.

Depends on D133167

Marking this as blocking the compat2021 metabug, since part 3 here fixes our failure in WPT test flex-abspos-staticpos-justify-content-vertWM-002.html , which is in the compat2021 test set.

Blocks: compat2021
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/dd1719d2c014
Part 1 - Extract a helper mapping justify-*:{left|right} to {start|end}. r=dholbert
https://hg.mozilla.org/integration/autoland/rev/e31135ea4028
Part 2 - Fix justify-*:{left|right} mapping for vertical row-oriented flex containers. r=dholbert
https://hg.mozilla.org/integration/autoland/rev/9eb74149f75b
Part 3 - Fix justify-*:{left|right} mapping for abspos children of flex containers. r=dholbert
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/32051 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: