Re: [css3-gcpm] [css3-page] Named page lists

Håkon Wium Lie wrote:
> Also sprach fantasai:
> 
>  > I'm trying to prepare CSS3 Paged Media for Last Call.. so it would
>  > be good to know if we need to make 'page' not inherit or anything
>  > like that.
> 
> I support the idea of changing 'page' from being inherited to not
> being inherited. If we do so, we can probably address the issue that
> the named page lists in GCPM is (unsuccessfully) trying to address;
> setting a different style on the first page in a series of pages. For
> example, the chapter title is often printed on the first page of the
> chapter and the chapter title should therefore not be printed in the
> running header of that first page. One could then write:
> 
>   div.chapter { page: chapter }
>   h2 { string-set: title content() }
>   @page chapter:left { @top-left { content: string(title) }}
>   @page chapter:first { @top-left { content: none }}
> 
> This code feels right to me, but it wouldn't work as long as 'page' is
> inherited (because 'chapter:first' in practice would match all pages).

Currently if two consecutive elements have different values for 'page',
there is a forced break. However if two consecutive elements have the
same value for 'page', there is no forced break. Under this proposal,
how would you distinguish between continuing the same section and starting
a new one?

~fantasai

Received on Thursday, 10 July 2008 17:26:37 UTC