Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8f6e322587e720d15f44b5ce91eb218b3b837592
https://github.com/WebKit/WebKit/commit/8f6e322587e720d15f44b5ce91eb218b3b837592
Author: Alan Baradlay <[email protected]>
Date: 2026-08-05 (Wed, 05 Aug 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/editing/other/editing-host-with-only-out-of-flow-child-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/editing/other/editing-host-with-only-out-of-flow-child.html
M Source/WebCore/rendering/updating/RenderTreeBuilderBlock.cpp
Log Message:
-----------
[anon-block-removal] Empty editable container with only an out-of-flow child
loses its line
https://bugs.webkit.org/show_bug.cgi?id=321090
Reviewed by Antti Koivisto.
When the first child is attached, RenderTreeBuilder::Block::attach seeds the
container's childrenInline()
from that child. An out-of-flow child is not in the flow, though, so it says
nothing about whether the
container's children are inline, and letting it answer the question turns
childrenInline() off for a
container that has no in-flow content at all.
* Source/WebCore/rendering/updating/RenderTreeBuilderBlock.cpp:
(WebCore::RenderTreeBuilder::Block::attach):
*
LayoutTests/imported/w3c/web-platform-tests/editing/other/editing-host-with-only-out-of-flow-child.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/editing/other/editing-host-with-only-out-of-flow-child-expected.txt:
Added.
Canonical link: https://commits.webkit.org/318671@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications