I need to know if I can modify content on the last page with the :last
selector.
I'm not sure if it exists, I see it being used in other stackoverflow answers like this: Footer on last printed page. But I can't find it in the documentation and it does not work when I try to use it.
I'm trying to clear the content on the footer of my last page like this:
@page {
@bottom-right {
content: "Please turn over";
}
}
@page :last {
@bottom-right {
content: none;
}
}
It works when I use it with the :first
selector. How can I get the effect for the last page?
I'm using Weasyprint to print PDF files.