W3C home > Mailing lists > Public > www-style@w3.org > September 2013

Re: [css3-gcpm] Page groups, named pages, and :first

From: Håkon Wium Lie <howcome@opera.com>
Date: Wed, 25 Sep 2013 21:06:59 +0200
Message-ID: <21059.13395.316320.548551@gargle.gargle.HOWL>
To: Simon Sapin <simon.sapin@exyr.org>
Cc: www-style@w3.org
Also sprach Simon Sapin:

 > > In this example, each article starts a new page group so that the
 > > first page of each article has a pink background.
 > >
 > > @page funky:first {
 > >   background: pink;
 > > }
 > > article {
 > >   page: funky;
 > >   page-group: start;
 > > }
 > >
 > > Without the ‘page-group: start’ declaration, only the first page of
 > > the first article would be pink.
 > 
 > This seems to assume that :first selects the first page of the group, 
 > which is not the case. The Paged Media defines :first as matching the 
 > first page *of the document*. This does not change when the pseudo-class 
 > is combined with a named page selector. (The two are just combined in a 
 > logical "and".)
 >
 > I agree that it would be useful to select the first page of a group, but 
 > that is not :first.

Then we should redefine :first slightly, so that it can be combined
with names pages in a meaningful way. It seems like a useful feature
that has implementation experience and user demand.

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Wednesday, 25 September 2013 19:07:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:34 UTC