title: CSS paged media :last page selector
body: <p>I need to know if I can modify content on the last page with the <code>:last</code> selector.</p>
  <p>I'm not sure if it exists, I see it being used in other stackoverflow answers like this: <a href="https://stackoverflow.com/questions/1176770/footer-on-last-printed-page?rq=1">Footer on last printed page</a>.
  But I can't find it in the <a href="https://www.w3.org/TR/css3-page/" rel="noreferrer">documentation</a> and it does not work when I try to use it.</p>
  <p>I'm trying to clear the content on the footer of my last page like this:</p>
  <pre><code>@page {
          @bottom-right {
              content: &quot;Please turn over&quot;;
          }
  }
  
  @page :last {
          @bottom-right {
              content: none;
          }
  }
  </code></pre>
  <p>It works when I use it with the <code>:first</code>selector. How can I get the effect for the last page?</p>
  <p>I'm using Weasyprint to print PDF files.</p>