Closed
Bug 1471276
Opened 7 years ago
Closed 3 years ago
[css-flexbox] Sibling of large image ends up at wrong "align-self" position
Categories
(Core :: Layout: Flexbox, defect, P3)
Core
Layout: Flexbox
Tracking
()
RESOLVED
DUPLICATE
of bug 1493645
Webcompat Priority | ? |
Tracking | Status | |
---|---|---|
firefox63 | --- | affected |
People
(Reporter: dholbert, Unassigned)
References
Details
Attachments
(1 file)
550 bytes,
text/html
|
Details |
Filing this for this webcompat issue which is really just a Firefox bug:
https://github.com/webcompat/web-bugs/issues/17410
STR: Load https://jsfiddle.net/3uk8so7d/
ACTUAL RESULTS: "Some text" is offset to the top (it's got a negative y-position).
EXPECTED RESULTS: "Some text" should be vertically centered.
I think you can get a hint into the reason if you drop "height: 100%" from the image. That makes the image wider (via height influencing min-width:auto resolution on an element with an intrinsic size), and with the image wider, "Some text" wrap to two lines -- taller than the container -- and that makes it *correctly* offset at the negative position, from a vertical-centering perspective.
So: it kinda looks like we're establishing the text's y-position (or perhaps the height) early on, before we establish the image's actual width, and then when have the final size, we don't correctly update the y-position.
Reporter | ||
Updated•7 years ago
|
Priority: -- → P3
Updated•7 years ago
|
See Also: → https://webcompat.com/issues/17410
Updated•3 years ago
|
Webcompat Priority: --- → ?
Comment 1•3 years ago
|
||
Comment 2•3 years ago
|
||
The testcase look OK on Nightly, and mozregression finds this range https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=7ac88abc3c57832e7e271dede934f8935c7f83a0&tochange=be037b5b6327f423a45c50837de07bae9522bd9a (Note in bad builds, sometimes they render the standalone testcase correctly, but they will eventual fail after refreshing the page multiple times.)
Bug 1493645 is the only bug in that range changing flex container, so I assume it fixed this bug.
Status: NEW → RESOLVED
Closed: 3 years ago
Component: Layout → Layout: Flexbox
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•