Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 613b3c7720c2e6c88b661def85af22d987313b74
https://github.com/WebKit/WebKit/commit/613b3c7720c2e6c88b661def85af22d987313b74
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-inline-size-001-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/orthogonal-block-in-inline-inline-size-001.html
M
Source/WebCore/layout/integration/LayoutIntegrationFormattingContextLayout.cpp
Log Message:
-----------
[block-in-inline] An orthogonal block level box in an inline box makes its
container as wide as the box instead of as its content
https://bugs.webkit.org/show_bug.cgi?id=322595
<rdar://problem/185890940>
Reviewed by Antti Koivisto.
The line asks the render tree what a block level box on it costs along the
line's inline axis, and got the
box's own inline size back. When the box's writing mode is orthogonal to the
line's, that is the wrong axis.
Read the box's intrinsic block size for that case, which is what block layout
reads for an orthogonal block
child in the block level branch of
RenderBlockFlow::computeInlinePreferredLogicalWidths.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/orthogonal-block-in-inline-inline-size-001-expected.txt:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/orthogonal-block-in-inline-inline-size-001.html:
Added.
*
Source/WebCore/layout/integration/LayoutIntegrationFormattingContextLayout.cpp:
(WebCore::LayoutIntegration::formattingContextRootLogicalWidthForType):
Canonical link: https://commits.webkit.org/319897@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications