Forum Bugs

prince-page-group: start; not working v. 16

tommyp
In previous versions applying

h1 {
break-before: page;
prince-page-group: start;
}

would allow a different page to be used for the start of each chapter, e.g.

@page :first {

@top {
content: none;
border-bottom: 0 none;
}
}

In version 16 it seems :first only applies to the first page of the document.

It may be just that the syntax has become stricter but I've been unable to figure this out.

tommyp
Simple file for test
  1. running_headers.html15.3 kB
csant
https://www.princexml.com/doc/paged/#selecting-pages

Note: Up to Prince version 15, the @page:first and @page:nth() selectors, when used together with the CSS property -prince-page-group: start in a page group, would select the first, or the nth page of the page group, respectively. Starting with Prince 16, these selectors always select the first and nth page of the whole document. To select the first or nth page of a page group, use the selectors @page:first-of-group and @page:nth-of-group().
mikeday
As described in the release notes: Breaking changes would ideally be avoided, but if we can't avoid them forever, then we'd rather make them sooner rather than later to reduce the overall impact. Apologies for any inconvenience this may cause.
tommyp
ok great that works. Surprised the Ai engines hadn't picked up that note.