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

Re: [css3-regions][css3-breaks] Forced region breaks inside a container with break-inside: avoid

From: Mihai Balan <mibalan@adobe.com>
Date: Wed, 18 Sep 2013 11:10:07 +0100
To: Mihnea-Vlad Ovidenie <mihnea@adobe.com>, "WWW Style (www-style@w3.org)" <www-style@w3.org>
CC: Alan Stearns <stearns@adobe.com>
Message-ID: <CE5F54B1.1EAE7%mibalan@adobe.com>
On 9/13/13 10:33 PM, "Mihnea-Vlad Ovidenie" <mihnea@adobe.com> wrote:

>I have the following situation, in which an element has break-inside:
>avoid-region and one of its children elements has break-after:region.
><div id="container" style="break-inside: avoid-region">
>	<div id="box1"></div>
>	<div id="box2" style="break-after: region"></div>
>	<div id="box3"></div>
>Assume now that the #container element fits completely inside a region,
>which is not the last one in the region chain so that the region breaks
>are not ignored. In this case, how should fragmentation work?
>a) the break-after property defined on the second box is honored and the
>third box, #box3 is laid out in the following region
>b) the break-inside: avoid defined on #container takes precedence and all
>the 3 boxes are displayed in the same region

My reading of [1] is that break forcing controls take precedence over break
avoidance controls, thus leading to the scenario described in (a).

However, I do think some clarifications regarding this scenario are needed,
since they are hinted at in the beginning of section 3 [2].


[1] http://dev.w3.org/csswg/css-break/#unforced-breaks
[2] http://dev.w3.org/csswg/css-break/#breaking-controls
Received on Wednesday, 18 September 2013 10:10:45 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:32 UTC