Selecting each first page of a page group
We need to select the first page of different instances of the same page named template.
For example, the first page of each chapter.
This is like selecting the first page of a page group. (issue #27)
Example :
HTML
<section class="chapter" id="chapter-1">
…
</section>
<section class="chapter" id="chapter-2">
…
</section>
CSS
.chapter {
page: chapter;
break-before: page;
break-before: page;
}
The following table shows which layout is applied to which page:
layout A = @page chapter { }
layout B = @page chapter:first { }
Link to the example file: https://gitlab.pagedmedia.org/tools/pagedjs/tree/master/specs/named-page/page-group/first-page-of-page-group