Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0e75fb8ad4c76c411646a05a2e4f89a88076474a
https://github.com/WebKit/WebKit/commit/0e75fb8ad4c76c411646a05a2e4f89a88076474a
Author: Alan Baradlay <[email protected]>
Date: 2026-08-06 (Thu, 06 Aug 2026)
Changed paths:
A
LayoutTests/fast/text/whitespace/white-space-after-out-of-flow-or-float-expected.txt
A
LayoutTests/fast/text/whitespace/white-space-after-out-of-flow-or-float.html
M Source/WebCore/rendering/updating/RenderTreeUpdater.cpp
Log Message:
-----------
[anon-block-removal] White space after an out-of-flow or floated box gets a
stray renderer
https://bugs.webkit.org/show_bug.cgi?id=321180
Reviewed by Antti Koivisto.
textRendererIsNeeded() drops collapsible white space that would be leading
white space on a line, since it
collapses away to nothing. In
<div>text<div>block</div><div style="position: absolute"></div> </div>
the trailing white space is not the first inline content in the container -
'text' is - but it is the first
inline content after an in-flow block level box, which ended the line, so it is
still trimmable.
(Previously the 'text' was wrapped inside an anon block which make this lambda
bail out sooner)
* Source/WebCore/rendering/updating/RenderTreeUpdater.cpp:
(WebCore::RenderTreeUpdater::textRendererIsNeeded):
* LayoutTests/fast/text/whitespace/white-space-after-out-of-flow-or-float.html:
Added.
*
LayoutTests/fast/text/whitespace/white-space-after-out-of-flow-or-float-expected.txt:
Added.
Canonical link: https://commits.webkit.org/318734@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications