Especially in old-fashioned books, references to photographs and figures refer to the page number of the *facing* page (where a page number actually appears, because commonly there were no page numbers on the page with the photos on it.)
I can't see a way to do this in CSS currently.
If there is no way, then maybe a new feature could be proposed: how about a pseudo-counter, facingpage, which would always be a function of page:
The pseudocode formula for this function would be:
// right page: facing is prior pg; left page: facing is next pg
facingpage = (page mod 2 ? page-1 : page+1)
Typical usage might be, instead of this...
content: " " leader(' . ') target-counter(attr(href), page);
this...
content: " " leader(' . ') target-counter(attr(href), facingpage);
-c
I can't see a way to do this in CSS currently.
If there is no way, then maybe a new feature could be proposed: how about a pseudo-counter, facingpage, which would always be a function of page:
The pseudocode formula for this function would be:
// right page: facing is prior pg; left page: facing is next pg
facingpage = (page mod 2 ? page-1 : page+1)
Typical usage might be, instead of this...
content: " " leader(' . ') target-counter(attr(href), page);
this...
content: " " leader(' . ') target-counter(attr(href), facingpage);
-c