diff --git a/packages/core/test/files/file-list.js b/packages/core/test/files/file-list.js index 53bfdb8fc..8f4defda5 100644 --- a/packages/core/test/files/file-list.js +++ b/packages/core/test/files/file-list.js @@ -135,15 +135,20 @@ module.exports = [ category: "Nth page selector", files: [ { - file: ["nth-page/nth-page.html", "nth-page/nth-page.html"], - title: "nth() page selector & blank page between two docs", + file: "nth-page/nth-page.html", + title: "nth() page selector", + }, + { + file: "nth-page/nth-page-counter-reset.html", + title: "nth() page selector & page counter reset", }, { file: [ + "nth-page/nth-page.html", "nth-page/nth-page-counter-reset.html", - "nth-page/nth-page-counter-reset.html", + "nth-page/nth-page.html", ], - title: "nth() page selector & page counter reset", + title: "nth() page selector & page counter reset in multiple documents", }, ], }, diff --git a/packages/core/test/files/nth-page/nth-page-counter-reset.html b/packages/core/test/files/nth-page/nth-page-counter-reset.html index 520ce86f1..2e5959b4d 100644 --- a/packages/core/test/files/nth-page/nth-page-counter-reset.html +++ b/packages/core/test/files/nth-page/nth-page-counter-reset.html @@ -84,14 +84,21 @@ margin: auto; table-layout: fixed; } + .test td { + text-align: center; + } + .test td:first-child { + text-align: left; + } + .test td:last-child { + text-align: right; + } code { font-size: smaller; } - h1 { - font-size: large; - } body { margin: 0; + line-height: 1.2; } @@ -245,5 +252,20 @@

Nth() page selector & page counter reset

counter-reset: page 100 (incremented to 101).

+
+

The 10th page header/footer should be:

+ + + + + + + + + + + +
:nth(even)
:nth(n+5)Page 102
+
diff --git a/packages/core/test/files/nth-page/nth-page.html b/packages/core/test/files/nth-page/nth-page.html index 0f647b54a..94379e701 100644 --- a/packages/core/test/files/nth-page/nth-page.html +++ b/packages/core/test/files/nth-page/nth-page.html @@ -74,14 +74,21 @@ margin: auto; table-layout: fixed; } + .test td { + text-align: center; + } + .test td:first-child { + text-align: left; + } + .test td:last-child { + text-align: right; + } code { font-size: smaller; } - h1 { - font-size: large; - } body { margin: 0; + line-height: 1.2; } @@ -103,7 +110,7 @@

Nth() Page Selector

* If this is not the first doc, “:first” will not appear, and the Page - numbering will be consecutive from the previous doc. A blank page is + numbering will be consecutive from the previous doc. A blank page may be inserted by :root { break-before: recto; }.