Trying to assign named page to a particular page causes error
Example of code:
@page namedPageWith3Columns {
columns: 3;
}
@page:nth(2) {
page: namedPageWith3Columns;
}
Produces the error: DOMException: Failed to execute 'querySelectorAll' on 'DocumentFragment': ':nth(2)' is not a valid selector.
Seems this functionality is not provided, it is possible to assign named pages only for an element, like div. But in this case it is not possible to continue text flow from one page to another.
Here are possible use cases:
- One page has tree columns, and next one two columns. And text should flow further without manual wrappers and breaks.
- First page should have background image, and the next one should not, but the text also flows from first page to the second one.