Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c37c8fb33b880e5d66f25e80ba0a1d22006fd044
https://github.com/WebKit/WebKit/commit/c37c8fb33b880e5d66f25e80ba0a1d22006fd044
Author: Alan Baradlay <[email protected]>
Date: 2026-09-29 (Tue, 29 Sep 2026)
Changed paths:
A
LayoutTests/fast/inline/nowrap-content-with-inner-spaces-wraps-when-overflowing-by-less-than-a-space-expected.html
A
LayoutTests/fast/inline/nowrap-content-with-inner-spaces-wraps-when-overflowing-by-less-than-a-space.html
M Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.h
Log Message:
-----------
[IFC] Nowrap content overflows the line instead of wrapping
https://bugs.webkit.org/show_bug.cgi?id=325291
<rdar://problem/188406135>
Reviewed by Elika Etemad.
<div style="font: 10px/10px Ahem; width: 195px">walked <span
style="white-space: nowrap">into the room</span> quietly</div>
"walked into the room" is 200px wide, yet the nowrap content stayed on the
first line.
ContinuousContent incorrectly marks the whitespace between "into" and "the" as
leading trimmable width,
so InlineContentBreaker thinks the content fits on the line when it does not.
Only white space before any "real" content is leading.
*
LayoutTests/fast/inline/nowrap-content-with-inner-spaces-wraps-when-overflowing-by-less-than-a-space-expected.html:
Added.
*
LayoutTests/fast/inline/nowrap-content-with-inner-spaces-wraps-when-overflowing-by-less-than-a-space.html:
Added.
* Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.cpp:
(WebCore::Layout::InlineContentBreaker::ContinuousContent::resetTrailingTrimmableContent):
(WebCore::Layout::InlineContentBreaker::ContinuousContent::reset):
* Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.h:
Canonical link: https://commits.webkit.org/322209@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications