W3C home > Mailing lists > Public > www-style@w3.org > January 2011

Re: [CSS3-UI] text-overflow:ellipsis (freshly rewritten/expanded and incorporated into editor's draft)

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 27 Jan 2011 10:45:57 +1300
Message-ID: <AANLkTiknvOBWCtpf8DBHbbq+4=9C+rX6=ZDRfPHtEbi5@mail.gmail.com>
To: Tantek Çelik <tantek@cs.stanford.edu>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, www-style@w3.org
On Wed, Jan 26, 2011 at 8:27 PM, Tantek Çelik <tantek@cs.stanford.edu>wrote:

> I've updated the editor's draft to provided a clearer description of
> how direction/ltr/rtl interact with text-overflow ellipsis (as well as
> provided some simple rendering examples), consistent with current
> Opera and WebKit implementations.
> http://dev.w3.org/csswg/css3-ui/#text-overflow
I suggest not following Opera and Webkit for bidi behavior. This example:
<div dir="rtl" style="text-overflow:ellipsis; overflow:hidden;
renders as "...Hello" in Webkit and Opera, which I think is clearly wrong.
IE renders it as "...loKitty", which I think is right.

Also try playing with this example:
<div style="text-overflow:ellipsis; overflow:auto; width:10%; height:100px;
border:1px solid black; font-size:16px;
IE clips visually, Webkit and Opera clip logically. I think the WG
eventually decided that visual clipping was better (and I agree).

The problem here is that there is no real interop for text-overflow with
bidi text. So you have to either spec something that isn't interoperably
implemented, or spec something that leaves bidi behavior undefined. You said
the former wasn't your goal, and the latter seems unpalatable.

"Now the Bereans were of more noble character than the Thessalonians, for
they received the message with great eagerness and examined the Scriptures
every day to see if what Paul said was true." [Acts 17:11]
Received on Wednesday, 26 January 2011 21:46:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:42 UTC