Re: [css-ui] text-overflow in overflow:visible blocks

> On 13 Jan 2015, at 22:34, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> But what
> happens if the line both overlaps the float *and* overflows the
> element?

I'd go with this:
1) if 'text-overflow' is 'clip', you overlap and overflow, and the 'overflow' property tells you what to do with the overflow.
2) if 'text-overflow' is something else, regardless of 'overflow', you ellipse the text if it overflows *the line box*. If there's a float, that means you ellipse before overlapping it, and if there isn't you ellipse to avoid overflowing.

(speaking of which, there is an extra problem with the current spec. The language about using the line edge is applied to all values, including the initial 'clip', and that's certainly wrong).

>   If you have visible overflow, it needs to be shown
> overflowing, right?

Not sure what you mean by that.

> But then the overlap getting ellipsized is weird
> and inconsistent.  So the current behavior (requiring non-visible
> 'overflow' for overlap-ellipsis to work) actually does make sense. ^_^
> 
> ~TJ

Received on Tuesday, 13 January 2015 22:37:35 UTC