Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 12920a284e78c330070d9a3264014f84b18df8c9
https://github.com/WebKit/WebKit/commit/12920a284e78c330070d9a3264014f84b18df8c9
Author: Alan Baradlay <[email protected]>
Date: 2026-08-21 (Fri, 21 Aug 2026)
Changed paths:
M LayoutTests/TestExpectations
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp
Log Message:
-----------
[line-clamp] text-overflow ellipsis should show on non-clamped content
https://bugs.webkit.org/show_bug.cgi?id=322122
<rdar://problem/185348784>
Reviewed by Antti Koivisto.
<div style="display: -webkit-box; -webkit-box-orient: vertical;
-webkit-line-clamp: 3;
width: 50px; overflow: hidden; text-overflow: ellipsis; white-space:
nowrap">
This content overflows
</div>
There is one line and room for three, so nothing is clamped and text-overflow
should end
the line with an ellipsis. Instead the line was clipped mid-glyph with no
ellipsis at all.
See https://github.com/w3c/csswg-drafts/issues/10823
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp:
(WebCore::Layout::InlineFormattingUtils::lineEndingTruncationPolicy):
* LayoutTests/TestExpectations:
Canonical link: https://commits.webkit.org/319597@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications