Closed Bug 1124772 Opened 9 years ago Closed 8 years ago

Ensure that placeholders don't interfere with flex items establishing container's baseline

Categories

(Core :: Layout, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Unassigned)

References

Details

Attachments

(1 file)

(spinning off from bug 1054058 comment 5)

STR:
 1. Load attached testcase, with an abspos flex item followed by a normal flex item.

EXPECTED RESULTS:
"Text Outside" and "Text Inside" should be baseline-aligned.

ACTUAL RESULTS:
"Text Outside" is aligned with the bottom of the flex-container's content-box. (i.e. the flex container's baseline is at the bottom of its content-box.)


As described in bug 1054058 comment 6, our "ACTUAL RESULTS" are actually "correct" for the abspos flex-container-child behavior that we currently implement (from an earlier version of the flexbox spec, mentioned/linked in bug 874718 comment 5).  Basically, right now we wrap the placeholder in an anonymous flex item, and that anonymous flex item is free to responsible for establishing the flex container's baseline. (and since it's empty, we end up falling back to just using the container's content-box bottom, per the final "otherwise" at http://dev.w3.org/csswg/css-flexbox-1/#flex-baselines)

But the spec doesn't say that placeholders should get wrapped in anonymous flex items anymore -- so once we implement the new spec behavior (in bug 874718), we should make sure the abspos element in the attached testcase doesn't interfere with its sibling establishing the container's baseline.
Attached file testcase 1
I get EXPECTED RESULTS in latest trunk. Resolving as FIXED by bug 874718.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: