[wpt-sync] Sync PR 63819 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=324007
Categories
(Core :: Layout: Flexbox, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63819 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63819
Details from upstream follow.
Alan Baradlay <zalan@apple.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=324007
WebKit export from bug: [<!---->Flex]<!----> flex-<!---->wrap:<!----> balance does not pack items that follow an overflowing item
<pre>
[Flex] flex-wrap: balance puts every item after an overflowing item on its own line<div style="display: flex; flex-wrap: balance; width: 100px; column-gap: 10px"> <div style="width: 50px"></div> <div style="width: 300px"></div> <div style="width: 20px"></div> <div style="width: 20px"></div> </div>The last two items should share the third line. Instead each got a line of its own.
Before balancing,
1, the line breaker walks the items once to record how many of them fit on a line starting at each index
2, the walk keeps a single end index across iterations so it never re-measuresbut end only moves forward when something fits, so an item wider than the line leaves it behind start.
The next iteration then asks for the length of an empty range producing a length larger than any line,
so the walk stops at once and records that only one item fits.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=324007">https://bugs.webkit.org/show_bug.cgi?id=324007</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/321057@main">https://commits.webkit.org/321057@main</a>
</pre>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=107230
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 51 tests
Status Summary
Firefox
OK : 10
PASS: 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 32[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 37[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 1[GitHub] 37[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 72[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
PASS: 1
Safari
FAIL: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-flexbox/balance/balance-negative-margin-002.html [wpt.fyi]
- #flex > div 2:
FAIL - #flex > div 3:
FAIL - #flex > div 4:
FAIL
- #flex > div 2:
- /css/css-flexbox/balance/flex-flow-shorthand.html [wpt.fyi]
- e.style['flex-flow'] = "balance" should set flex-direction:
FAIL - e.style['flex-flow'] = "balance" should set flex-wrap:
FAIL - e.style['flex-flow'] = "balance" should not set unrelated longhands:
FAIL - e.style['flex-flow'] = "column wrap balance" should set flex-direction:
FAIL - e.style['flex-flow'] = "column wrap balance" should set flex-wrap:
FAIL - e.style['flex-flow'] = "column wrap balance" should not set unrelated longhands:
FAIL - e.style['flex-flow'] = "wrap-reverse balance row-reverse" should set flex-direction:
FAIL - e.style['flex-flow'] = "wrap-reverse balance row-reverse" should set flex-wrap:
FAIL - e.style['flex-flow'] = "wrap-reverse balance row-reverse" should not set unrelated longhands:
FAIL
- e.style['flex-flow'] = "balance" should set flex-direction:
- /css/css-flexbox/balance/flex-flow-valid.html [wpt.fyi]
- e.style['flex-flow'] = "balance" should set the property value:
FAIL - e.style['flex-flow'] = "row balance" should set the property value:
FAIL - e.style['flex-flow'] = "row wrap balance" should set the property value:
FAIL - e.style['flex-flow'] = "balance wrap row" should set the property value:
FAIL - e.style['flex-flow'] = "column balance" should set the property value:
FAIL - e.style['flex-flow'] = "balance column" should set the property value:
FAIL - e.style['flex-flow'] = "wrap-reverse balance" should set the property value:
FAIL - e.style['flex-flow'] = "column wrap-reverse balance" should set the property value:
FAIL - e.style['flex-flow'] = "balance wrap-reverse row-reverse" should set the property value:
FAIL
- e.style['flex-flow'] = "balance" should set the property value:
- /css/css-flexbox/balance/flex-line-count-computed.html [wpt.fyi]
- Property flex-line-count value '1':
FAIL - Property flex-line-count value '2':
FAIL - Property flex-line-count value 'round(up, calc(7/2))':
FAIL - Property flex-line-count value 'calc(NaN)':
FAIL
- Property flex-line-count value '1':
- /css/css-flexbox/balance/flex-line-count-valid.html [wpt.fyi]
- e.style['flex-line-count'] = "1" should set the property value:
FAIL - e.style['flex-line-count'] = "2" should set the property value:
FAIL
- e.style['flex-line-count'] = "1" should set the property value:
- /css/css-flexbox/balance/flex-wrap-computed.html [wpt.fyi]
- Property flex-wrap value 'balance':
FAIL - Property flex-wrap value 'wrap balance':
FAIL - Property flex-wrap value 'wrap-reverse balance':
FAIL - Property flex-wrap value 'balance wrap':
FAIL - Property flex-wrap value 'balance wrap-reverse':
FAIL
- Property flex-wrap value 'balance':
- /css/css-flexbox/balance/flex-wrap-valid.html [wpt.fyi]
- e.style['flex-wrap'] = "balance" should set the property value:
FAIL - e.style['flex-wrap'] = "wrap balance" should set the property value:
FAIL - e.style['flex-wrap'] = "wrap-reverse balance" should set the property value:
FAIL - e.style['flex-wrap'] = "balance wrap" should set the property value:
FAIL - e.style['flex-wrap'] = "balance wrap-reverse" should set the property value:
FAIL
- e.style['flex-wrap'] = "balance" should set the property value:
- /css/css-flexbox/balance/balance-001.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-002.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-003.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-005.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-available-size-001.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-available-size-002.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-complex.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-dynamic-001.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-dynamic-002.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-dynamic-003.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-dynamic-004.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-dynamic-006.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-dynamic-007.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-flex-grow.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-line-break-overflowing-item.html [wpt.fyi]:
FAIL(Chrome:PASS, Safari:FAIL) - /css/css-flexbox/balance/balance-line-count-intrinsic-001.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-line-count-intrinsic-002.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-line-count-intrinsic-003.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-line-count-intrinsic-004.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-line-count-intrinsic-005.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-line-count-intrinsic-006.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-line-count-intrinsic-007.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-min-line-count-001.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-min-line-count-002.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-min-line-count-003.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-min-line-count-004.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-min-line-count-005.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-min-line-count-006.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-negative-margin-001.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-percentage-size-001.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-percentage-size-002.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-start-bias-001.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-start-bias-002.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-start-bias-003.html [wpt.fyi]:
FAIL - /css/css-flexbox/balance/balance-zero-size.html [wpt.fyi]:
FAIL
Comment 4•24 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d3446c15cb94
https://hg.mozilla.org/mozilla-central/rev/fdce1eefd1e4
Description
•