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

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

From: Florian Rivoal <florian@rivoal.net>
Date: Tue, 13 Jan 2015 23:37:09 +0100
Cc: www-style list <www-style@w3.org>, Mats Palmgren <mats@mozilla.com>
Message-Id: <0E16C8FE-DC85-462A-A3E5-D06A418A4530@rivoal.net>
To: "Tab Atkins Jr." <jackalmage@gmail.com>

> 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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:50 UTC