Closed Bug 1539586 Opened 6 years ago Closed 5 years ago

contain:layout should suppress baseline alignment for inline-grid

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1552287
Tracking Status
firefox68 --- affected

People

(Reporter: dholbert, Unassigned)

Details

Attachments

(1 file)

Attached file testcase 1 (deleted) —

STR:

  1. Load attached testcase.

EXPECTED RESULTS:
The two black boxes should be aligned at the same vertical position. (The first one has contain:layout which means it should be treated as having no baseline, just like the second empty box which is actually empty.)

ACTUAL RESULTS:
The first black box uses its contents to establish its baseline, which results in a different baseline position from the second box.

Has STR: --- → yes

Note: Chrome is not a perfect reference for our expected behavior here -- they do align empty vs. contained boxes consistently, but they do so at the wrong position, per https://bugs.chromium.org/p/chromium/issues/detail?id=946669

I'm fixing this in bug 1552287. I confirmed that the attached testcase has EXPECTED RESULTS in a build with bug 1552287's patches applied.
--> duping forward.

No longer blocks: css-contain-layout
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: