[wpt-sync] Sync PR 36104 - Avoid invalid class C break when a first inflow child fits beside float.
Categories
(Core :: Layout, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox107 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 36104 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/36104
Details from upstream follow.
Morten Stenshorne <mstensho@chromium.org> wrote:
Avoid invalid class C break when a first inflow child fits beside float.
If a container was cleared by a preceding float, and said container has
a float and a BFC root child, and the BFC root fits beside the float,
we'd incorrectly detect container separation before the BFC root, even
though there was no gap between it and its container.We don't really need to let child_margin_got_separated be part of the
container separation check, since we're already comparing block-offsets.
That said, the whole child_margin_got_separated thing is a bit sketchy,
in that there may be false positives. Added a TODO.Note that, among the tests included, only the -004 one would fail
without this fix. The two others are just regression tests, to make sure
that we still detect valid class C breakpoints in very similar
situations.Bug: 1368518
Change-Id: I78ff2f5081e4a6878d4556ddbd859286da12e7d3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3921636
Commit-Queue: Morten Stenshorne \<mstensho@chromium.org>
Reviewed-by: Ian Kilpatrick \<ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1053246}
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 3 tests
Status Summary
Firefox
PASS: 2
FAIL: 1
Chrome
PASS: 2
FAIL: 1
Safari
PASS: 3
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-break/class-c-breakpoint-after-float-004.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS)
Comment 4•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/0ab7208335a3
https://hg.mozilla.org/mozilla-central/rev/04da07c59a70
Description
•