Closed Bug 2086987 Opened 1 month ago Closed 18 days ago

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

Categories

(Core :: CSS Parsing and Computation, 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 64186 into mozilla-central (this bug is closed when the sync is complete).

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

Alan Baradlay <zalan@apple.com> wrote:

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

WebKit export from bug: [<!---->block-<!---->in-<!---->inline]<!----> A block whose content is a table is treated as self-<!---->collapsing

<pre>
[block-in-inline] A block whose content is a table is treated as self-collapsing

LineLayout::isSelfCollapsingContent() looks for the block level box on a line so it can ask whether that
box is self-collapsing. It iterates the line's display boxes with

 for (auto index = line.firstBoxIndex(); index &lt; line.lastBoxIndex(); ++index)

but lastBoxIndex() is firstBoxIndex() + boxCount() - 1, an inclusive index, so the last box on the line is
never examined. A block level box on a line is typically the last box on it, in which case the look-up
returns nullptr and the "renderBox && !renderBox->isSelfCollapsingBlock()" test is skipped altogether.

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

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
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 816 tests

Status Summary

Firefox

OK : 1[GitHub] 25[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-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 3[GitHub] 97[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 876[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 878[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] 881[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 26[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 31[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 34[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] 36[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 1
PASS: 3

Safari

OK : 1
PASS: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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.