Bug 144839 - Web Inspector: Clip text by showing ellipsis in the middle instead of the end
Summary: Web Inspector: Clip text by showing ellipsis in the middle instead of the end
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nikita Vasilyev
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-05-09 20:41 PDT by Nikita Vasilyev
Modified: 2016-12-13 15:40 PST (History)
4 users (show)

See Also:


Attachments
[Animated GIF] Actual/expected (8.93 KB, image/gif)
2015-05-09 20:41 PDT, Nikita Vasilyev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2015-05-09 20:41:11 PDT
Created attachment 252802 [details]
[Animated GIF] Actual/expected

Actual:
a-very-very-very-very-very...

Expected:
a-very-very-...-long-filename.js:42

Some ways of doing it: http://stackoverflow.com/questions/831552/ellipsis-in-the-middle-of-a-text-mac-style
Mozilla’s proposal to allow doing this in pure CSS: https://bugzilla.mozilla.org/show_bug.cgi?id=740910
Comment 1 Radar WebKit Bug Importer 2015-05-09 20:41:30 PDT
<rdar://problem/20888765>
Comment 2 Timothy Hatcher 2015-05-10 03:38:05 PDT
Doing in CSS would be great. I could have sworn we had a helper in Utilities.js to do this too, but I am not seeing it anymore.