ISSUE-334: counter-reset: page

counter-reset: page

CSS3 Paged Media
Raised by:
Simon Sapin
Opened on:
Use case: reset the page counter at some point in the document.

The current scoping rule does not allow resetting with a property applied to an element: this just creates a counter scoping context different from that of @page and resets a different counter.

Resetting in @page is tricky, even with named paged, because we only want to reset on one given page. We’d need a variant of the :first pseudo-class in page selectors that selects the first of a sequence of pages with the same 'name'.

WeasyPrint bug report:
Related Actions Items:
No related actions
Related emails:
  1. [css-text] Outstanding CSS Text i18n issues (from on 2014-10-09)
  2. CSS-ISSUE-334: counter-reset: page [CSS3 Paged Media] (from on 2013-06-04)

Related notes:

No additional notes.

Display change log ATOM feed

Peter Linss <>, Daniel Glazman <>, Alan Stearns <>, Rossen Atanassov <>, Chairs, Chris Lilley <>, Bert Bos <>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <>.
$Id: index.php,v 1.325 2014-09-10 21:42:02 ted Exp $