Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4102848ed39add0d8fef73db2f3f781773a8ab93
https://github.com/WebKit/WebKit/commit/4102848ed39add0d8fef73db2f3f781773a8ab93
Author: Alan Baradlay <[email protected]>
Date: 2026-08-26 (Wed, 26 Aug 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/orthogonal-block-in-inline-block-axis-position-001-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/orthogonal-block-in-inline-block-axis-position-001.html
M Source/WebCore/rendering/RenderBlockFlow.cpp
Log Message:
-----------
[block-in-inline] An orthogonal block level box in an inline box is misplaced
https://bugs.webkit.org/show_bug.cgi?id=322597
<rdar://problem/185895981>
Reviewed by Sam Weinig and Antti Koivisto.
RenderBlockFlow::layoutSimpleBlockContentInInline lays a block level box on a
line out again where it already
is. It read the position back with RenderBox::logicalTop(), which is on the
box's own block axis, and handed it
to layoutBlockChildFromInlineLayout, which writes it on the container's.
Orthogonal writing modes make those
two different axes, so the box landed at its inline offset along the
container's block axis: 55px into a
container whose only line before it takes 20px, sitting on that line rather
than after it.
Read and write the position through the container's own accessors, which is
what put the box there in the first
place.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/orthogonal-block-in-inline-block-axis-position-001-expected.txt:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/orthogonal-block-in-inline-block-axis-position-001.html:
Added.
* Source/WebCore/rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::layoutSimpleBlockContentInInline):
Canonical link: https://commits.webkit.org/319895@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications