W3C home > Mailing lists > Public > www-style@w3.org > October 2008

Re: [css3-gcpm][css3-page] Page counters

From: Håkon Wium Lie <howcome@opera.com>
Date: Thu, 16 Oct 2008 13:52:29 +0200
Message-ID: <18679.11005.500966.518903@opera.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style@w3.org

Also sprach fantasai:

 > > [1] http://dev.w3.org/csswg/css3-gcpm/#page-counters

 > I'd rather keep the 'page' counter in css3-page. 


 > There's already a detailed
 > discussion of page-based counters in the Editor's Draft.
 > http://dev.w3.org/csswg/css3-page/#page-based-counters

That's good. I don't think we should give the 'page' counter a
different scope than other counters, though. I'd like to be able to
reset the 'page' counter from any element, not just from the page
context. For example, in a book you may have:

  <div class=titlepage>...</div>
  <div class=abstract>...</div>
  <div class=chapter>...</div>
  <div class=chapter>...</div>

And you want to reset the page counter at the first chapter. It seems
unnecessarily compex to have to define a named page for this purpose
when you could do:

  <div class=titlepage>...</div>
  <div class=abstract>...</div>
  <div class=chapter style="counter-reset: page 1" >...</div>
  <div class=chapter>...</div>

Which is actually used in this document:


 > As for 'pages', I could go either way. We can add it to css3-page and mark
 > it at-risk; that would be my preference.

I'm fine with that as well.

              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Thursday, 16 October 2008 11:53:35 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:40 UTC