W3C home > Mailing lists > Public > www-style@w3.org > February 2016

Re: The Prellipsis

From: Jonathan Kew <jfkthame@gmail.com>
Date: Wed, 24 Feb 2016 18:51:06 +0000
To: www-style@w3.org
Message-ID: <56CDFB9A.2090301@gmail.com>
On 13/2/16 10:46, Connor Egbert wrote:
> To all who have a say in CSS standards:
> Often us developers of the web come across a simple problem: Our line of
> text is too long to fit in its space.
> The solution is a simple yet elegant truncate + ellipsis combo.
> Everything fits and users come to the obvious conclusion that there is
> more if they care to dig in.
> Lovely.
> However, many times the most important part of a line of text is not
> what is at the beginning, but what is at the end. A file path, for
> example. It is not very important that the file exists in
> C://Users/Documents/…
> In most cases the user would rather know that the file path is
> .../Pictures/CoolPicOfSpace.jpg
> “Simple” we say. Let’s just truncate from the front in throw in our
> beloved triple dots. Easy.
> False.

Something like this works pretty nicely in Firefox, AFAICS:

   .filepath {
     border:1px solid red;
   .filepath>span {
<div class=filepath>

I notice that in Safari and Chrome, it behaves differently: it truncates 
the text at the end, even though it puts an ellipsis at the left. IMO, 
that's a bug in their implementations.

Received on Wednesday, 24 February 2016 18:51:40 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:57 UTC