Re: Question on collapsing margins and block reflow context roots

Ah, I meant that <fieldset> would collapse margins with siblings. :)

Boris Zbarsky wrote:

> David Hyatt wrote:
>
>> Everything Ian described is what Safari (WebCore) does for <button> 
>> and <fieldset> (and for overflow non-visible elements).
>
>
> Except what Ian described for <fieldset> is different from what CSS 
> 2.1 requires for overflow non-visible elements...  I'm re-quoting what 
> Ian said, for reference:
>
>>> 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. But I acknowledge that this is not normatively 
>>> defined anywhere.
>>
>
> So per Ian, a <fieldset> is just another block.
>
> I just tested Safari 1.0.3 (has this been changed since?) and 
> overflow:hidden box size is affected by floating descendants, whereas 
> fieldset size is not.  So I'm not sure how to read your statement, 
> which implies that they behave identically...
>
> -Boris
>

Received on Thursday, 27 January 2005 21:00:45 UTC