Re: ::overflow pseudo element

On Mon, 10 May 2004, Anne van Kesteren (fora) wrote:
>>>
>>> Ok, the proposal. '::overflow' can be used as an element, which can be
>>> positioned independently. All the text that doesn't fit in the box
>>> will go to this pseudo-element when a special value for 'overflow'
>>> (the /property/) has been set.
>
> "text that doesn't fit" means all the lines of text that don't fit
> completely within the specified 'height' and 'width' of the box, with
> their specified 'font-size', 'line-height' combination.
>
> (I'm not sure if the breaks the current 'overflow' mechanism.)

So how does this work:

   <div><span>Test</span></div>

   div { overflow: special-value; height: 1em; width: 1em; }
   span { margin: -0.5em; display: block; font-size: 3em; }

...what goes into ::overflow?

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
U+1047E                                         /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 10 May 2004 11:23:41 UTC