W3C home > Mailing lists > Public > www-style@w3.org > April 2009

Re: [css3-page] page counters and scope

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 23 Apr 2009 11:40:11 -0700
Message-ID: <49F0B60B.1030104@inkedblade.net>
To: Andrew Fedoniouk <news@terrainformatica.com>
CC: "Grant, Melinda" <melinda.grant@hp.com>, "www-style@w3.org" <www-style@w3.org>
Andrew Fedoniouk wrote:
> 
> This discussion reminded me one problem I wanted to ask while ago.
> 
> Are there any plans to support not only counters() but some
> other accumulators, for example "total of the page" kind of things?
> 
> Sort of:
> 
> @media printer
> {
>   td.total { content: page-sum-of( $(td.row-total):value ); }
> }
> 
> with the markup:
> 
> <tfoot>
>   <tr>...<td .total>(total on the page here)</td></tr>
> </tfoot>
> 
> Or is this too much?

I think spreadsheet-like calculations are out-of-scope for CSS.

However, there are some proposals for more functionality from
counters, e.g. the target-counter() function
   http://dev.w3.org/csswg/css3-gcpm/#cross-references
and I think there was one for a last-count() or max-count()
function to grab the highest counter value.
   http://lists.w3.org/Archives/Public/www-style/2007Oct/0103.html

~fantasai
Received on Thursday, 23 April 2009 18:40:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:46:58 GMT