Layout difference with display: flex with negative margin after float:left with width: 100%
Categories
(Core :: Layout: Flexbox, defect)
Tracking
()
People
(Reporter: arai, Unassigned)
References
Details
(Keywords: parity-chrome, parity-safari)
Attachments
(3 files)
From https://github.com/webcompat/web-bugs/issues/93295
Steps to reproduce:
- Run Firefox Nightly with clean profile
- open https://labaru.my.id/download-category/download/
Actual result:
content under the header is not shown (attachment Firefox case)
Expected result:
content under the header is also shown (attachment Chrome case)
Safari also shows the content under the header.
I have minimal testcase. I'll post it in the next comment
| Reporter | ||
Comment 1•4 years ago
|
||
| Reporter | ||
Comment 2•4 years ago
|
||
Comment 3•4 years ago
|
||
The severity field is not set for this bug.
:dholbert, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 4•4 years ago
|
||
Our behavior on the minimal testcase is correct.
Chrome agrees with us if you remove the negative margins -- they place the flexbox at the far right side of the page just like we do. Then, when you add negative margins to that element, it should (if anything) fit even better in that spot -- but chrome treats it as if that makes it no-longer-fit and they push it down below the float.
The Chrome bug is https://bugs.chromium.org/p/chromium/issues/detail?id=1141209 . So, assuming the minimal testcase captures what the site was doing, this means the site is (or was) depending on that Chrome bug, by accident.
(Having said that: I can't actually reproduce the issue at the original site, so perhaps they fixed or worked around the issue?)
Comment 5•4 years ago
|
||
I ended up filing bug 1745310 as a central place to track this behavior-difference. I'll dupe this over there.
Comment 6•4 years ago
|
||
Verified duplicate -- Nightly 102 (with bug 1745310's patch) renders the attached minimal testcase the same way that Chrome does (like the screenshot in comment 2).
Description
•