Closed Bug 2091285 Opened 9 days ago Closed 6 days ago

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

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 64492 into mozilla-central (this bug is closed when the sync is complete).

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

Alan Baradlay <zalan@apple.com> wrote:

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

WebKit export from bug: A float inside an inline box can be positioned twice when the line it was collected with is discarded

<pre>
A float inside an inline box can be positioned twice when the line it was collected with is discarded

 &lt;div style=&quot;width: 100px&quot;&gt;
     XX XX XX XX
     &lt;span&gt;
         &lt;div style=&quot;float: left; width: 200px; height: 20px&quot;&gt;&lt;/div&gt;X
         &lt;div style=&quot;display: flow-root&quot;&gt;X&lt;/div&gt;
     &lt;/span&gt;
 &lt;/div&gt;

The float should sit at the top of the first line below where it fits. Instead it
was 20px lower, its own height.

Discarding line content left the float on the suspended list, so the next line both
resumed it and met its inline item again. Drop it, and re-key the placed floats tree
when a placed float's rect changes.

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

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 149 tests

Status Summary

Firefox

OK : 17
PASS: 1[GitHub] 20[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 116[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 217[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: 11

Chrome

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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