Closed Bug 1155322 Opened 9 years ago Closed 7 months ago

Handle & test edge cases with baselines in flex layout, with non-default writing modes

Categories

(Core :: Layout: Flexbox, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1834663
Tracking Status
firefox40 --- affected

People

(Reporter: dholbert, Unassigned)

References

Details

Attachments

(1 file)

While converting flexbox layout to use logical coords, I'm hitting cases where we'll need some special-case handling for baseline computations.

(e.g. if the flex container has a LTR writing-mode but its parent has a vertical writing-mode, then IIRC we need to use its horizontal center as the "baseline", regardless of what it thinks its LTR baseline is. And baseline-alignment of flex items will be different in a vertical-writing-mode flex container, as well.)

To allow general flex-layout logicalization bugs to proceed (& mostly convert between physical & logical types), without having to handle baseline special-cases up-front, I'm filing this bug as a placeholder where I can circle back and logicalize baseline-handling & add special-cases / child-to-parent conversions as-needed.
Summary: Handle & test edge cases → Handle & test edge cases with baselines in flex layout, with non-default writing modes
Blocks: 1079155
Attached file testcase
If I flip the axis using "flex-direction:column", shouldn't baseline
alignment work for vertical items then?  Or am I missing something
here... it seems Chrome doesn't do baseline alignment either in
this case so maybe I am.  The spec language here seems to suggest
it should work though:
https://drafts.csswg.org/css-align-3/#baseline-align-self

(I'm expecting the "a"'s to align their baselines.)
I believe your expectation is correct, yeah.

Right now, I think our baseline-alignment code only works for "flex-direction:row", since (per this bug) it still needs tweaking to be writing-mode aware. (And in a traditional English LTR writing mode, "flex-direction:row" is the only case where baseline alignment of items makes sense.)
Severity: normal → S3
Component: Layout → Layout: Flexbox
OS: Linux → All
Hardware: x86_64 → All

After bug 1834663, we rendered the testcase in comment 1 the same as Google Chrome.

Status: NEW → RESOLVED
Closed: 7 months ago
Duplicate of bug: 1834663
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: