Re: ::overflow pseudo element

>>>>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?

If '::overflow' isn't specified, 'overflow' will be ignored.

If '::overflow' is specified none of the content will be placed into the 
DIV, since the 'font-size' is larger then 'height'. The content will be 
moved to the '::overflow' pseudo element.


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>

Received on Monday, 10 May 2004 11:36:57 UTC