[css-ui] proposal for text-overflow: fade

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[css-ui] proposal for text-overflow: fade

Jonathan Watt-3
This has come up again at Mozilla recently, so I'd like to propose new
text-overflow functionality where the text is faded out using a mask if it
overflows.

It would probably make sense to allow authors to specify a length over which to
fade (e.g. over 2em).

A simple linear gradient would probably be adequate for the mask, but it might
be prudent to leave scope for functionality for authors to specify their own
mask[1].

Jonathan

1. https://hg.fxtf.org/drafts/raw-file/tip/css-masking-1/index.html

Reply | Threaded
Open this post in threaded view
|

Re: [css-ui] proposal for text-overflow: fade

Sebastian Zartner-3
On 12 August 2015 at 02:59, Jonathan Watt <[hidden email]> wrote:

> This has come up again at Mozilla recently, so I'd like to propose new
> text-overflow functionality where the text is faded out using a mask if it
> overflows.
>
> It would probably make sense to allow authors to specify a length over which
> to fade (e.g. over 2em).
>
> A simple linear gradient would probably be adequate for the mask, but it
> might be prudent to leave scope for functionality for authors to specify
> their own mask[1].
>
> Jonathan
>
> 1. https://hg.fxtf.org/drafts/raw-file/tip/css-masking-1/index.html

Note that this was discussed earlier:
https://lists.w3.org/Archives/Public/www-style/2013Oct/0050.html
https://lists.w3.org/Archives/Public/www-style/2014Jun/0166.html

I don't know the current state of the discussion, though.

Sebastian