W3C home > Mailing lists > Public > www-style@w3.org > May 2004

Re: ::overflow pseudo element

From: Anne van Kesteren (fora) <fora@annevankesteren.nl>
Date: Mon, 10 May 2004 17:36:19 +0200
Message-ID: <409FA173.5020902@annevankesteren.nl>
To: Ian Hickson <ian@hixie.ch>
Cc: www-style@w3.org

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:29 GMT