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

On 4/10/2013 2:52 PM, Brad Kemper wrote:
>> On Oct 3, 2013, at 4:44 PM, "Tab Atkins Jr." <jackalmage@gmail.com>
>> wrote:
>>
>>> On Thu, Oct 3, 2013 at 4:15 PM, Rik Cabanier <cabanier@gmail.com>
>>> wrote: This sounds like a new pseudo-class ':overflow' :-)
>>
>> Nah, text-overflow is per-line, not per-element.
>
> It could be pseudo element representing the last visible em-length of
> the overflowing line. Just like 'first-letter' selects part of a line
> (well, not exactly the same, as ::overflow would not be based on
> glyph boundaries).

This can't be a pseudo element. It's simply decoration for text that is 
overflowing and when nothing is overflowing, there is no decoration. It 
the same as ellipses. For ::first-letter, you don't style when a word 
reaches 10 glyphs long and not style when the word is only 5 glyphs long.


-- 
Alan Gresley
http://css-3d.org/
http://css-class.com/

Received on Friday, 4 October 2013 07:16:21 UTC