W3C home > Mailing lists > Public > www-style@w3.org > January 2005

Re: Question on collapsing margins and block reflow context roots

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 28 Jan 2005 10:38:30 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.61.0501281030490.11312@dhalsim.dreamhost.com>

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:


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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:16 UTC