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

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>

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


[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 UTC