W3C home > Mailing lists > Public > www-style@w3.org > October 2013

Displaying an ellipsis on the last visible line of a block that overflows vertically

From: Robert O'Callahan <robert@ocallahan.org>
Date: Sun, 27 Oct 2013 02:54:47 +0100
Message-ID: <CAOp6jLbpN-KYjEQccSj+V-59PUGv31g-ArTgyVXBAin-Z49Ezw@mail.gmail.com>
To: www-style <www-style@w3.org>
I've had two requests for this just in the last week.

Seems to me it would be easy to add a 'text-overflow-last' property with
the same values as text-overflow. When a block has text-overflow-last not
'clip', and its 'overflow' is not 'visible', and it has one or more lines
overflowing vertically, the last line that fully fits in the block (or the
first line, if there is no line that fully fits in the block) gets an
overflow indicator according to the value of 'text-overflow-last' and the
content of any later lines is hidden as if they're clipped out. If a line
gets a text-overflow-last indicator, it cannot also get a text-overflow

Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w  *
Received on Sunday, 27 October 2013 01:55:14 UTC

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