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

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

From: Mihnea-Vlad Ovidenie <mihnea@adobe.com>
Date: Fri, 13 Sep 2013 20:33:56 +0100
To: "WWW Style (www-style@w3.org)" <www-style@w3.org>
CC: Alan Stearns <stearns@adobe.com>
Message-ID: <CE58B6B4.4BABE%mihnea@adobe.com>
Hi,

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>
</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

Regards,
Mihnea
Received on Friday, 13 September 2013 19:34:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:34 UTC