FW: [css3-page] Page counters

 
CSS3 Paged Media is a bit vague on details regarding counters used
within page margins.
 
I propose the addition of the following text to the section entitled
"Page-based Extensions to Counters":
"
A 'counter-increment' within either a page or margin context causes the
counter to increment with the generation of each page box.
If a counter is reset or incremented within the page context, it is in
scope for all margin boxes and obscures all counters of the same name
within the document.
If a counter is reset or incremented within a margin context, it is in
scope for that margin box and obscures any counters of the same name in
both the page context and the document.
If a counter that has not been reset or incremented within the margin
context or the page context is used by counter() or counters() in the
margin context, then the resultant value is exactly as if the margin box
were an element within the document at the start of the page, inside the
deepest element in the normal flow that spans the page break. Use of the
counter in this way does not affect the calculation of the counter's
value.
In the absence of a 'counter-reset' or 'counter-increment' for a counter
named 'page', the UA must automatically create and increment such a
counter as if "@page { counter-increment: page;}" were specified.
In all other respects, page-associated counters behave as described in
[[CSS21]], Nested Counters and Scope and Counters.  
"

I think this should resolve the questions discussed in [1], [2], and [3]
below, wrt css3-page.

Thoughts / questions or concerns?

Best wishes,

Melinda

[1] http://lists.w3.org/Archives/Public/www-style/2007May/0074.html

[2] http://lists.w3.org/Archives/Public/www-style/2007May/0076.html

[3] http://lists.w3.org/Archives/Public/www-style/2007Jun/0119.html

 
Melinda S. Grant	
Connectivity Strategist
Imaging & Printing Group


	

Received on Wednesday, 1 August 2007 01:52:56 UTC