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

Re: [css-ui] text-overflow: fade ?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 3 Oct 2013 13:33:24 -0700
Message-ID: <CAAWBYDA5abe41A_yvwBf2FvX0EDgQz=Q79aGHNDzoSG-j=C+pg@mail.gmail.com>
To: Rik Cabanier <cabanier@gmail.com>
Cc: www-style list <www-style@w3.org>
On Thu, Oct 3, 2013 at 12:46 PM, Rik Cabanier <cabanier@gmail.com> wrote:
> Wouldn't this be trivial to implement with masking and a linear gradient.
> ie:
> p {
>   mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%,rgba(0,0,0,1)
> 80%,rgba(0,0,0,0) 100%);
> }

Now that we have CSS masking, the functionality itself isn't that hard
to implement, yes.  But you can't tie it to text-overflow, which is
the intended behavior.  If the text fits, you don't want it to start

Note as well that any explicit masking like this won't be bidi-aware,
and so will be on the wrong side in rtl text.

Received on Thursday, 3 October 2013 20:34:10 UTC

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