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

Re: ::overflow pseudo element

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 10 May 2004 15:23:27 +0000 (UTC)
To: "Anne van Kesteren (fora)" <fora@annevankesteren.nl>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.58.0405101521510.13068@dhalsim.dreamhost.com>

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 GMT

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