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

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