WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
329149
[line-clamp] text-overflow does not apply to a block ellipsis that overflows the line
https://bugs.webkit.org/show_bug.cgi?id=329149
Summary
[line-clamp] text-overflow does not apply to a block ellipsis that overflows ...
Christian Biesinger
Reported
2026-10-27 13:39:15 PDT
<div style="line-clamp: 3 'very long block ellipsis'; overflow: hidden; text-overflow: ellipsis; font-family: monospace; width: 10ch"> text text text text text text text text text text</div> The third line should read "very long…", but it reads "very long": the block ellipsis does not fit on the line, and it is clipped at the edge of the box instead of being ellipsed. "If a line has a block overflow ellipsis, then any handling relating to it, including displacing content from the end of the line, occurs first. If the line still overflows after that (e.g. because the block overflow ellipsis is too long), then it is ellipsed according to the text-overflow property."
https://drafts.csswg.org/css-overflow-4/#text-overflow
Test: imported/w3c/web-platform-tests/css/css-overflow/line-clamp/line-clamp-text-overflow-001.html
Attachments
Add attachment
proposed patch, testcase, etc.
Christian Biesinger
Comment 1
2026-10-27 13:41:52 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/78499
EWS
Comment 2
2026-10-31 01:02:43 PDT
Committed
325356@main
(17346230b867): <
https://commits.webkit.org/325356@main
> Reviewed commits have been landed. Closing PR #78499 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2026-10-31 01:03:17 PDT
<
rdar://problem/191466391
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug