Forum Feature requests

@page:nth(n of A)

jaype
Hey,
It would be awesome if you implemented the hole specification at https://www.w3.org/TR/css-gcpm-3/#document-sequence-selectors.
That way it would be possible to not have page numbers on certain pages.

How I expect it to work:

html
<div class="table-of-contents"></div>
<div class="content">
<!-- html content here -->
</div>


css
.content {
    page: content;
}
@page:nth(n of content) {
    @bottom-right {
        content: counter(page);
    }
}


If you know any workarounds other than the following I'd love to here that
@page {
    @bottom-right {
        content: counter(page);
    }
}
@page:nth(1), @page:nth(2), @page:nth(3) {
    @bottom-right {
        content: none;
    }
}
jaype
I came up with a workaround for anyone interested
*{
	string-set: pagenum "";
}
.content, .content *{
	string-set: pagenum counter(page);
}
@page{
	@bottom-right{
		content: string(pagenum);
	}
}

This is far from clean but way better than my previous one