Closed Bug 1539589 Opened 5 years ago Closed 5 years ago

contain:layout should suppress baseline alignment for scrollable inline-level elements

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

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

People

(Reporter: dholbert, Unassigned)

References

Details

Attachments

(1 file)

STR:

  1. Load attached testcase

EXPECTED RESULTS:
"abc" should not be aligned with the text inside the black boxes. (contain:layout should make those boxes behave like they have no baseline.)

ACTUAL RESULTS:
"abc" is aligned with the baseline of the inline-flex and inline-grid boxes. (and that's incorrect)

Note: if we remove overflow:scroll, then I get EXPECTED RESULTS from the inline-flex part of the test, but not from the inline-grid part of the test. That grid brokenness is bug 1539586.

Attached file testcase 1
Has STR: --- → yes

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

I'm going to use this as the first bug for an intern starting next week. So, nobody take it, please.

Oops, it seems I fixed this as part of bug 1552287 -- specifically this chunk:
https://hg.mozilla.org/mozilla-central/rev/3eda0c8cf975#l8.2

I'll just dupe this over to bug 1552287.

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: