- From: Bruno Racineux <bruno@hexanet.net>
- Date: Fri, 18 Oct 2013 18:24:04 -0700
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- CC: www-style list <www-style@w3.org>
On 10/18/13 8:47 AM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote: >On Fri, Oct 18, 2013 at 1:38 AM, Bruno Racineux <bruno@hexanet.net> wrote: >> >> On 10/17/13 2:57 PM, "Kang-Hao (Kenny) Lu" <kanghaol@oupeng.com> wrote: >> >>>(2013/10/18 5:35), Tab Atkins Jr. wrote: >>>> On Thu, Oct 17, 2013 at 2:23 PM, Bruno Racineux <bruno@hexanet.net> >>>>wrote: >>>>> Does this proposal address "clearing the float" at all? >>>>> >>>>> I would be ideal is there was a native solution for this by now, >>>>>rather >>>>> than the 'clearfix' hacks. >>>>> >>>>> And while 'overflow:hidden' helps, it's not a comprehensive solution >>>>>to >>>>> clear-fixing. >>>> >>>> This is basically a more powerful/comprehensive overflow:hidden, so it >>>> addresses float clearing as well as overflow:hidden does. >>> >>>I suppose this reads >>> >>> 'overflow: clip' doesn't address "clearing the float" >>> >>>? I am not criticizing the proposal as the use cases might just be >>>parallel, >> >> I bring this due to the implications between overflow:hidden and >>"clearing >> the float". And for lack of introduction perhaps, I am curious to >> understand what overflow:clip intends to achieve or address. >> >>>but the above sentence is just vague and diffucult to parse, at least to >>>me. >> >> The way I read Tab, is that it would substitute the "overflow:hidden" >> method of >> "clearing the float". But it is vague indeed. > >I'm not sure how I was vague. overflow:clip is a stronger version of >overflow:hidden, effectively. It works exactly as well for clearing >floats as overflow:hidden does. If you're unsatisfied using >overflow:hidden to clear floats, you'll be unsatisfied with using >overflow:clip as well. I would be indeed, if it prevents scrolling in a way that it clips the inline flow of inline-blocks beyond it margins. As per my previous use case. >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>. > >~TJ I had not being introduced to the New Sizing Keywords. Sounds good. Bruno
Received on Saturday, 19 October 2013 01:24:31 UTC