Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5ea540bdc483b6d75ba41a160de89e08f387410d
https://github.com/WebKit/WebKit/commit/5ea540bdc483b6d75ba41a160de89e08f387410d
Author: Alan Baradlay <[email protected]>
Date: 2026-10-05 (Mon, 05 Oct 2026)
Changed paths:
M LayoutTests/TestExpectations
M
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/line-clamp/block-ellipsis-033.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/pre-tab-001-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/pre-tab-001.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/reference/pre-tab-001-ref.html
M Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.cpp
Log Message:
-----------
[IFC] An overflowing preserved tab does not wrap to the next line
https://bugs.webkit.org/show_bug.cgi?id=326226
<rdar://problem/189104880>
Reviewed by Antti Koivisto.
<div style="width: 85px; font: 25px Ahem; tab-size: 4">X <span
style="white-space: pre">	</span> X</div>
The tab does not fit after "X " and should wrap to the second line. Overflowing
content that is only whitespace
stays on the line, as it is either trimmed or hangs at the end of the line. A
tab with white-space: pre does
neither, it takes up space, so it now goes through the regular overflow
handling and wraps.
Tests: imported/w3c/web-platform-tests/css/css-text/white-space/pre-tab-001.html
imported/w3c/web-platform-tests/css/css-text/white-space/reference/pre-tab-001-ref.html
* LayoutTests/TestExpectations: block-ellipsis-033 passes now.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/line-clamp/block-ellipsis-033.html:
Tolerate the off-by-one pixels.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/pre-tab-001-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/pre-tab-001.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/reference/pre-tab-001-ref.html:
Added.
* Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.cpp:
(WebCore::Layout::isWhitespaceOnlyContent):
Canonical link: https://commits.webkit.org/322759@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications