Closed Bug 2087255 Opened 1 month ago Closed 18 days ago

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

Categories

(Core :: Layout, 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 64298 into mozilla-central (this bug is closed when the sync is complete).

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

Alan Baradlay <zalan@apple.com> wrote:

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

WebKit export from bug: [<!---->block-<!---->in-<!---->inline]<!----> Empty orthogonal block nested in an inline box stretches the line

<pre>
[block-in-inline] Empty orthogonal block nested in an inline box stretches the line

RenderBox::logicalTop() is

 writingMode().isHorizontal() ? y() : x()

resolved in the child's writing mode. For a vertical-rl child in a horizontal-tb container it therefore
returns the child's physical x, which in an rtl container is its right edge. That value was returned as the
block's logical top, became borderBoxTop in layoutWithFormattingContextForBlockInInline, was stored as the
block's vertical margin and the line inherited it as its height:

 renderer x=769 y=0  -&gt;  childLogicalTop=769  -&gt;  marginBefore=769  -&gt;  line height 769

RenderBlock::logicalTopForChild() is isHorizontalWritingMode() ? child.y() : child.x(), i.e. resolved
against the container, which is what the caller means. Needs all three of rtl, an orthogonal writing mode
and an empty block - with content in the block a different path computes the size.

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

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

CI Results

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

Total 1248 tests and 3 subtests

Status Summary

Firefox

OK : 82
PASS: 13[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 393[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1518[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] 1521[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 1525[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 27[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 48[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 50[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 55[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]

Chrome

OK : 1
PASS: 3
FAIL: 2

Safari

OK : 1
PASS: 3
FAIL: 2

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.