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

Re: [css3-break] Force-breaking around floats

From: Alan Stearns <stearns@adobe.com>
Date: Mon, 16 Dec 2013 21:15:22 +0000
To: Mihai Balan <mibalan@adobe.com>, WWW Style <www-style@w3.org>
Message-ID: <CED4AC93.3509D%stearns@adobe.com>
On 12/6/13, 1:34 AM, "Mihai Balan" <mibalan@adobe.com> wrote:

>See inline:
>
>-----Original Message-----
>From: Alan Stearns
>Sent: Tuesday, November 19, 2013 9:06 PM
>To: Mihai Balan; WWW Style
>Subject: Re: [css3-break] Force-breaking around floats
>
>>On 11/19/13 7:25 AM, "Mihai Balan" <mibalan@adobe.com> wrote:
>>
>
>[snip]
>
>>>
>>>    1. What should happen when a float contains a forced break (e.g. an
>>>element *inside* the float has `break-after: always`)? I suspect it
>>>should break, but exactly how does that look and how the resulting
>>>float fragments interact with the rest of the content (fragments) is
>>>something that I feel is likely to blow up in our face.
>>
>>It should break, and section 5.1 [1] attempts to deal with some of the
>>implications of this. The examples use unforced breaks, but where an
>>unforced break could occur you should be able to force a break.
>> 
>
>Not quite. With unforced breaks, I think it is impossible for normal flow
>content to  end up below the float fragment in the first fragmentainer.
>With forced breaks, the first fragment of the float could be near the
>start of the first fragmentainer with a lot of normal flow content still
>unbroken. Will this normal flow content be rendered below the first
>fragment of the float? Does the first float fragment create a
>"continuation" to the next fragmentainer?

With the recent edits, the answer to these questions is no and yes, and
can be found in section 2.1. A forced break inside a float does not allow
content outside the float to render below the first fragment. The float
box height is increased such that the first fragment of the float
continues to the bottom of the first fragment container as in your B
diagram.

>
>
>B. Float fragments are "linked" together
>+--[First fragmentainer]------+
>| /=======\ ................. |
>| | first | ................. |
>| | float | ................. |
>| | frag. | ................. |
>| |       | ................. |
>| |~~~~~~~| ................. |
>| |xxxxxxx| ................. |
>| |xxxxxxx| ................. |
>| |xxxxxxx| ................. |
>| |xxxxxxx| ................. |
>+-----------------------------+
>
>+--[Second fragmentainer]-----+
>| /~~~~~~~\ ................. |
>| | second| ................. |
>| | float | ................. |
>| | frag. | ................. |
>| |       | ................. |
>| \=======/ ................. |
>| ........................... |
>| ........................... |
>| ........................... |
>| ........................... |
>+-----------------------------+

Received on Monday, 16 December 2013 21:15:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:17 UTC