- From: Simon Sapin <simon.sapin@exyr.org>
- Date: Wed, 25 Sep 2013 16:50:37 +0100
- To: www-style@w3.org
Hi, In the "Page groups" section, example 43 says: > 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. By the way, what does :nth() (previous section) count? -- Simon Sapin
Received on Wednesday, 25 September 2013 15:51:14 UTC