Re: Question on collapsing margins and block reflow context roots

On Thu, 27 Jan 2005, Boris Zbarsky wrote:
> Ian Hickson wrote:
> > IMHO the default rendering of <button> should be 'inline-block' and 
> > the default rendering of <fieldset> should be 'block', with the 
> > <legend> positioned over the border edge either via positioning or via 
> > extra-CSS means.
> 
> I'm aware that that is your opinion.  It even sorta works for button, 
> but for <fieldset> the extra-CSS means is exactly what you need; there's 
> no way to get the common default rendering of <fieldset> in CSS.

You can get very close with real CSS:

   http://junkyard.damowmow.com/173

...with minimal amounts of extra-CSS, I don't see the problem.


> So the point of the question is, given that it IS a block reflow context 
> root (and that this is not changing), what should the margin collapsing 
> behavior be?

It shouldn't be a block formatting context root. It should act exactly 
like a block for most purposes, so margin-wise it should collapse with 
siblings as per normal. It shouldn't grow to fit floats. Its children
should collapse margins normally, and if the border and padding of the 
fieldset is removed, they should collapse out as per normal as well.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 28 January 2005 10:38:32 UTC