chakas / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

counter-reset does not work on 'page' #86

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
*** This issue was imported from http://java.net/jira/browse/XHTMLRENDERER-207

It was reported by crnixon on 27.12.2007 19:19:30 +0100 and last updated in the 
previous bug tracker on 20.07.2008 19:31:03 +0200

Found in
Operating System: Mac OS X
Platform: Macintosh

The priority for this issue at migration was Major.

Original description: 
I am trying to reset the page counter in CSS, like so:

#main {
    counter-reset: page 1;
}

This is not working so far. However, I can set user-defined counters, like this:

#main {
    counter-reset: foo 1;
}

Original issue reported on code.google.com by pdoubl...@gmail.com on 16 Feb 2011 at 9:55

GoogleCodeExporter commented 9 years ago
peterbrant wrote on 28.12.2007 16:00:21 +0100:
Yeah, unfortunately, this isn't supported (nor for that matter is anything 
counter and page related)

You can programatically start a document at an arbitrary page number as well as 
restrict counter(page)/counter(pages) to a range of the document (e.g. number 
pages like

1 of 2
2 of 2
1 of 3
2 of 3
3 of 3

)

Original comment by pdoubl...@gmail.com on 16 Feb 2011 at 9:55

GoogleCodeExporter commented 9 years ago
pdoubleya wrote on 20.07.2008 19:31:03 +0200:
Set as compliance issue, R9

Original comment by pdoubl...@gmail.com on 16 Feb 2011 at 9:55

GoogleCodeExporter commented 9 years ago
While the "-fs-page-sequence: start;" style works for resetting the page 
counter for direct reference, the number appearing in "content: 
target-counter(attr(href), page);" is not reset. If you have a document with a 
cover letter, the page numbering resets for the document, but the TOC will have 
offset page numbering.

Original comment by tonythet...@gmail.com on 20 Oct 2011 at 9:39