- From: Robert O'Callahan <robert@ocallahan.org>
- Date: Tue, 1 Feb 2011 21:27:21 +1300
- To: Tantek Çelik <tantek@cs.stanford.edu>
- Cc: www-style@w3.org
- Message-ID: <AANLkTingbuYNyraHm-SgXw_H7-+s7fUUHg-0cRA2pXc0@mail.gmail.com>
On Tue, Feb 1, 2011 at 3:11 PM, Tantek Çelik <tantek@cs.stanford.edu> wrote: > On Sun, Jan 23, 2011 at 19:04, Robert O'Callahan <robert@ocallahan.org> > wrote:> The effect of > > text-overflow:ellipsis on lines whose line boxes are not direct children > of > > the block box(es) with text-overflow is currently undefined. > > I think this *is* actually both well defined (if indirectly) and > interoperable. That is, the effect of the definition in the spec is > that *only* the direct block element parent of line boxes can affect > the text-overflow behavior of those line boxes since text-overflow is > not inherited by default (and each block element potentially sets its > own dimensions and overflow). > Ah, but what about anonymous block boxes? E.g. <!DOCTYPE HTML> <div style="text-overflow:ellipsis; overflow:auto; width:10%; height:100px; border:1px solid black; font-size:16px; white-space:pre;">Hello<div>XYZ</div>Kitty</div> Here, the nearest ancestor block boxes containing "Hello" and "Kitty" are anonymous. It looks like IE9 and Opera apply text-overflow to those words, but Webkit does not. Thanks! Rob -- "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 Tuesday, 1 February 2011 08:27:54 UTC