You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: 52.5 (No fix found in changelogs of newer versions)
I've noticed that when using the @page :nth(an+b) rule, the b value is not being used.
E.g. @page :nth(2n+5) will apply to every other page, instead of every other page after the 5th page.
A simple way to reproduce this bug:
HTML:
<body>
<div>
<p>Some content here</p>
<div>
<div style="page-break-before:always"> <!-- To enforce a new page being created -->
<p>Some other content here</p>
<div>
</body>
This should put page numbers for the second page only, but you should see that it creates page numbers for both pages. I tried debugging and only found that the stylesheets were getting correctly parsed, but I don't know why when rendering the CSS it doesn't take into account the b.
The text was updated successfully, but these errors were encountered:
Version: 52.5 (No fix found in changelogs of newer versions)
I've noticed that when using the
@page :nth(an+b)
rule, theb
value is not being used.E.g.
@page :nth(2n+5)
will apply to every other page, instead of every other page after the 5th page.A simple way to reproduce this bug:
HTML:
CSS:
This should put page numbers for the second page only, but you should see that it creates page numbers for both pages. I tried debugging and only found that the stylesheets were getting correctly parsed, but I don't know why when rendering the CSS it doesn't take into account the
b
.The text was updated successfully, but these errors were encountered: