Add page groups (named pages into named pages)
The css-gspm-3 module proposes the notion of page group:
When the page property is applied to an element that also has a forced break property applied, a page group is created. The page group is the collection of all pages created by an instance of that element. When a new instance of the element is rendered, a new page group is started.
A page may be part of several page groups, as a given page group may have ancestors or descendants that are part of another page group.
https://www.w3.org/TR/css-gcpm-3/#document-sequence-selectors
That means that there may be named pages into other named pages. It’s the child element layout that has priority over the parent element layout.
Example:
HTML
<section>
…
<aside>…</aside>
…
</section>
<section>
…
<aside>…</aside>
…
</section>
CSS
section {
page: section;
break-before: page;
break-before: page;
}
aside {
page: aside;
break-before: page;
break-before: page;
}
The following table shows which layout is applied to which page:
layout A = @page section { }
layout B = @page aside { }
Link to the example file: https://gitlab.pagedmedia.org/tools/pagedjs/blob/master/specs/named-page/page-group/page-group.html
It must also be possible to select the first page (Issue #28) or the n page (Issue #29) of a page group