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

Also sprach James Elmore:

 > > Generated Content for Paged Media [1] proposes a way to move content.
 > > Consider this markup:
 > >
 > > <contrib contrib-type="author">
 > >   <name>
 > >     <surname>Knuth</surname>
 > >     <given-names>Donald E.</given-names>
 > >   </name>
 > >   <role>professor</role>
 > > </contrib>
 > >
 > > combined with this style sheet:
 > >
 > >   surname { float: to(lastname) }
 > >   given-names::after { content: from(lastname) ", " }
 > >
 > > will result in this presentation:
 > >
 > >   Donald E. Knuth, professor
 > >
 > > [1] http://www.w3.org/TR/css3-gcpm/
 > >
 > > Does this address your needs?
 > 
 > Thanks for the reference, very interesting. This may be part of what  
 > I am asking for, but not completely. This style allows the movement  
 > of items from one place to another within a document (or a page).  
 > With this, I could specify the element or contents that I wanted at  
 > the end of the chapter, but I still don't see how to use it to place  
 > that element at the end of a chapter or section.

<div class="chapter">
  <div class="move-to-end">...</div>
  ....
</div>

div.move-to-end { float: to(end-of-chapter) }
div.chapter::after { content: from(end-of-chapter) }

 > If this current discussion makes a clear way to specify styles or  
 > content for the :first page, I would like to propose the addition  
 > of :last page as well. Then it would be easy to incorporate the  
 > elements I suggested in my last email at the end of every section. To  
 > use your example, above, a reference work which includes shorter  
 > sections each by a different author, could start with the title and  
 > author on the :first page, and conclude with the author's name (and  
 > possibly contact information) at the end (on the :last page).

I'm not convinced by these use cases. If you want to move something to
the end, I think you should move it to a place in the structure (e.g.,
chapter or section, as per the example above), not to a certain page.
The content you are moving may take up more than one page and the
moved content will therefore not (only) be on the last page anymore.

If there is a good use case for setting different headers/footers on
the last page, I may be convinced. Is there?

It's slightly harder to implement :last than :first, because the
formatter doesn't necessarily know that a page is the last until it
has been formatted. Loops may occur.

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome

Received on Saturday, 12 July 2008 21:38:52 UTC