Open GoogleCodeExporter opened 9 years ago
html { counter-reset: page 4; } triggers nothing apparently, should that work
only once.
html { background: red; } doesn't work either but it does on normal HTML, is
this a separate issue I should open?
Original comment by abar...@gmail.com
on 22 May 2012 at 3:01
I'm not sure how thoroughly (if at all) counter-reset is implemented. This is
something that needs further development in the code. In the meantime, if all
you need is set the current document page counter to a new starting value you
can do so using counter-increment instead. See the following:
<html>
<head>
<style>
div.first { counter-increment: page 3; }
div:after { content: counter(page); page-break-after:always; }
</style>
</head>
<body>
<div class="first">page</div>
<div>page</div>
</body>
</html>
On your first page you need an uniquely identifiable element that you can use
to increment the page counter. This is necessary because dompdf currently
treats each page as a unique document. So you can't rely on tricks like
body:first-child or anything like that.
..
For the problems related to CSS as applied to the <html> element, create a new
issue.
Original comment by eclecticgeek
on 31 May 2012 at 12:55
Original comment by eclecticgeek
on 24 May 2013 at 3:00
Original issue reported on code.google.com by
abar...@gmail.com
on 22 May 2012 at 2:47