WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
REOPENED
Bug 5990
Boxes should work with text-overflow: ellipsis
https://bugs.webkit.org/show_bug.cgi?id=5990
Summary
Boxes should work with text-overflow: ellipsis
Timothy Hatcher
Reported
2005-12-07 09:36:57 PST
It seems that boxes will clip their content similar to "overflow: hidden" naturally, except "text-overflow: ellipsis" does not work.
Attachments
Testcase showing expected behavior and actual behavior with boxes.
(781 bytes, text/html)
2005-12-07 11:17 PST
,
Timothy Hatcher
no flags
Details
rendering in safari, firefox, chrome
(4.40 MB, image/png)
2024-10-09 05:34 PDT
,
Karl Dubost
no flags
Details
testcase rendering in safari, firefox, chrome
(4.02 MB, image/png)
2024-10-09 05:36 PDT
,
Karl Dubost
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Timothy Hatcher
Comment 1
2005-12-07 11:17:34 PST
Created
attachment 4991
[details]
Testcase showing expected behavior and actual behavior with boxes. I was wrong earlier about boxes having a natural clip, you still need to use overflow: hidden and in my case white-space: nowrap.
Eric Seidel (no email)
Comment 2
2005-12-27 23:58:32 PST
This looks to be working, unless I'm missing something?? FireFox does not render the elipsis, but I'm not sure they support overflow: elipsis; Only one question remains as to if we need to land this test case. Tim? Hyatt?
Timothy Hatcher
Comment 3
2005-12-28 01:16:35 PST
This is still broken. Make sure you run the test on TOT, it works with the release Safari/WebKit (likely due to it ignoring the display: -apple-box and treating the div as a block.)
Ahmad Saleem
Comment 4
2022-07-23 08:47:12 PDT
I am able to reproduce this bug using attached test case in Safari 15.6 on macOS 12.5, for red container named (Box w/ text-overflow ellipsis), it is not shown ellipsis in the end while all other browsers (Chrome Canary 106 and Firefox Nightly 104) do it. Thanks!
Radar WebKit Bug Importer
Comment 5
2022-07-23 11:33:00 PDT
<
rdar://problem/97488477
>
Karl Dubost
Comment 6
2024-10-09 05:27:31 PDT
https://oisaur.com/@renchap/113276852782235890
> I do not know if I have some Webkit developers here but… we are currently blocked by
https://bugs.webkit.org/show_bug.cgi?id=5990
for the Mastodon Web UI, a bug from 2005 where the ellipsis is not shown if the container contains boxes. It works in Firefox and Chrome, and all the alternatives require heavy JS.
Here is a codepen with an example, you can see that the list does not display ellipsises in Safari:
https://codepen.io/vincent-valentin/pen/WNVGVjK/8c1bac071f91b67f51516a4d2bf3276b
Anything we can do to get this fixed?
Karl Dubost
Comment 7
2024-10-09 05:30:21 PDT
The full previous comment is from the message. I missed some quoting characters.
Karl Dubost
Comment 8
2024-10-09 05:34:50 PDT
Created
attachment 472877
[details]
rendering in safari, firefox, chrome Rendering tested on Safari Technology Preview 205 20621.1.2.111.4 Firefox Nightly 133.0a1 13324.10.4 Google Chrome Canary 131.0.6766.0 6766.0
Karl Dubost
Comment 9
2024-10-09 05:36:27 PDT
Created
attachment 472878
[details]
testcase rendering in safari, firefox, chrome Same browsers, but this time rendering for the testcase attached to the bug.
Karl Dubost
Comment 10
2024-10-09 05:45:28 PDT
The testcase is quite old here. As it is using ``` .container { display: -apple-box; border: 1px solid red; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } ``` `display: -apple-box` not being supported on firefox and chrome, it defaults to `display: block` So it's probably not relevant anymore in this context. The test in the codepen is more interesting. Maybe another should be opened.
Karl Dubost
Comment 11
2024-10-09 05:49:02 PDT
if I replace `-apple-box` by `-webkit-box`, then the 3 browsers behave the same.
Karl Dubost
Comment 12
2024-10-09 05:57:06 PDT
I opened
bug 281136
for the specific bug reported by Vincent Valentin and @renchap
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