W3C home > Mailing lists > Public > www-style@w3.org > November 2013

Re: [css-regions] Floats and auto-sized regions

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 6 Nov 2013 09:21:42 -0800
Message-ID: <CAAWBYDAqneOQzLJo6nH+70PaHQP7_mg1PyEfgBdyjpbHyZ8Tbw@mail.gmail.com>
To: Mihai Balan <mibalan@adobe.com>
Cc: WWW Style <www-style@w3.org>
On Wed, Nov 6, 2013 at 9:06 AM, Mihai Balan <mibalan@adobe.com> wrote:
> Hello everybody,
> I'd like to know your position on the following scenario: suppose we have
> some content that gets flowed in an auto-sized region, and said content also
> has a floated box in it, that's taller than the non-float content. Should
> the size of the region be the size of the non-float *and* float content
> (taller) or just the size of the non-float content (shorter)?
>
> A corollary to this scenario is what should the size for an auto-size region
> when the only thing flowed in it would be a float?
>
> My personal take is that the float itself should not contribute to the
> sizing of the regions other than through the eventual shortening of line
> boxes of the surrounding contents and/or clearing. (The answer to the
> corollary being that the region should have 0 height).

This tends to be a pretty undesirable behavior for people.  They want
their elements that are semantically "containers" to contain floats,
and do a bunch of hacks to make it happen.  I'd be much more in favor
of having the region container act like a BFC in this case.

~TJ
Received on Wednesday, 6 November 2013 17:22:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:36 UTC