W3C home > Mailing lists > Public > www-style@w3.org > July 2007

[css21] shrink-wrap sizing of blocks with overflow other than "visible"

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 20 Jul 2007 08:26:15 -0500
Message-ID: <46A0B7F7.7050402@mit.edu>
To: www-style Mailing List <www-style@w3.org>

Currently in Gecko the preferred minimum width of a block with overflow set to 
something other than "visible" is 0.  For example:

<div style="width: 0px">
   <div style="border: 1px solid green; float: left; overflow: hidden">text</div>
</div>

won't show the text.

This is also what IE does, as far as we can tell.  So do at least some versions 
of Opera in some cases [1].

It might be worth documenting in the various definitions of preferred minimum 
width that this might be needed to actually render web sites (though it does 
already say the algorithm is not defined).

It might also be worth putting all the definitions of preferred minimum width in 
a single place...

-Boris

[1] <https://bugzilla.mozilla.org/show_bug.cgi?id=309110#c18>.  The preferred 
min width in Opera seems to at least partly depend on what the ancestor is, as 
far as I can tell.
Received on Friday, 20 July 2007 13:26:31 GMT

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