contain:layout should suppress baseline alignment for scrollable inline-level elements
Categories
(Core :: Layout, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | affected |
People
(Reporter: dholbert, Unassigned)
References
Details
Attachments
(1 file)
916 bytes,
text/html
|
Details |
STR:
- 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.
Reporter | ||
Comment 1•5 years ago
|
||
Updated•5 years ago
|
Reporter | ||
Comment 2•5 years ago
|
||
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
Reporter | ||
Comment 3•5 years ago
|
||
I'm going to use this as the first bug for an intern starting next week. So, nobody take it, please.
Reporter | ||
Comment 4•5 years ago
|
||
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.
Description
•