Closed Bug 2086839 Opened 1 month ago Closed 18 days ago

[wpt-sync] Sync PR 64098 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327182

Categories

(Core :: Layout: Flexbox, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64098 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64098
Details from upstream follow.

Alan Baradlay <zalan@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327182

WebKit export from bug: [<!---->Flex]<!----> A table flex item with borders or padding and a non-<!---->auto min-<!---->width is too wide

<pre>
[Flex] A table flex item with borders or padding and a non-auto min-width is too wide

 &lt;div style=&quot;display: flex; width: 50px&quot;&gt;
   &lt;table style=&quot;min-width: 0; border: 10px solid; border-spacing: 0&quot;&gt;&lt;tr&gt;&lt;td style=&quot;padding: 0&quot;&gt;&lt;div style=&quot;width: 100px&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
 &lt;/div&gt;

The table should be 120px wide, its min-content width. Instead it was 140px, wider than with min-width: auto.

computeUsedNonAutoMinMainSize keeps a table from shrinking below its min-content width by flooring the min main size,
a content-box size, with minContentMainAxisContributionForFlexItem. That returned the min-content contribution with the
table's border and padding included, and the border box then added them a second time.

Return the content-box size instead, like maxContentMainAxisExtentForFlexItem does, and rename the function to
minContentMainAxisExtentForFlexItem to match.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=327182">https://bugs.webkit.org/show_bug.cgi?id=327182</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/323466@main">https://commits.webkit.org/323466@main</a>
</pre>

Component: web-platform-tests → Layout: Flexbox
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1418 tests

Status Summary

Firefox

OK : 375
PASS: 1[GitHub] 29[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 4655[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 5593[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 5594[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]
FAIL: 152[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 223[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] 226[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 227[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

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 18 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.