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

Re: A dedicated property to clear descendant floats (was: Proposal for "overflow:clip" for stronger painting isolation)

From: Bruno Racineux <bruno@hexanet.net>
Date: Fri, 18 Oct 2013 18:16:50 -0700
To: Marat Tanalin <mtanalin@yandex.ru>
CC: <www-style@w3.org>
Message-ID: <CE8728E4.76FA3%bruno@hexanet.net>


On 10/18/13 1:28 PM, "Marat Tanalin" <mtanalin@yandex.ru> wrote:

>18.10.2013, 19:48, "Tab Atkins Jr." <jackalmage@gmail.com>:
>> Getting a container element to contain its floats has been addressed
>> directly in the Sizing spec, though it hasn't gotten implementation
>> yet.  You can set "min-height: contain-floats;" to make it work:
>> <http://dev.w3.org/csswg/css-sizing/#the-contain-floats-value>.
>
>`min-height: contain-floats` looks somewhat interesting, but what if a
>web developer needs for an element to have both self-clearing _and_ some
>numeric `min-height`?

I can't really see such a practical case. The whole point of clearing
floats is to let the floats define your min-height. The min-height become
that of the children elements.
Received on Saturday, 19 October 2013 01:17:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:03 UTC