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

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

From: Håkon Wium Lie <howcome@opera.com>
Date: Tue, 8 Jul 2008 00:27:51 +0200
Message-ID: <18546.39015.306297.736255@opera.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style@w3.org

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).

Cheers,

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Tuesday, 8 July 2008 07:17:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT