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

Re: .clearfix (was: Proposal for "overflow:clip" for stronger painting isolation)

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 18 Oct 2013 11:00:58 -0700
Message-ID: <CAAWBYDAN6-mqrEngoSoW=vtRRKM9Xk01a5X-ALpfdu_OF7Xz8g@mail.gmail.com>
To: "Kang-Hao (Kenny) Lu" <kanghaol@oupeng.com>
Cc: Bruno Racineux <bruno@hexanet.net>, WWW Style <www-style@w3.org>
On Fri, Oct 18, 2013 at 9:31 AM, Kang-Hao (Kenny) Lu
<kanghaol@oupeng.com> wrote:
> Given Alan's compliant, that's start a new thread.
>
> (2013/10/18 23:47), Tab Atkins Jr. wrote:
>> 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>.
>
> Unless I am missing something, "getting a container element to contain
> its floats" is not the requirement, the requirement is "getting the
> parent of the targeted element to contain its floats". Note that the
> targeted element is different.

Why is this important?  Why can't you just target the parent directly?

~TJ
Received on Friday, 18 October 2013 18:01:45 UTC

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