W3C home > Mailing lists > Public > www-style@w3.org > October 2011

Re: New ::first-page pseudo-element

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Wed, 26 Oct 2011 14:50:34 +0200
Message-Id: <C5DBA10B-3798-41B1-9EA4-EA621793EAE4@crissov.de>
To: W3C Style <www-style@w3.org>
Michael Day:

> To achieve this we have implemented a new ::first-page pseudo-element,

I assume you’ve implemented it with a vendor prefix.

I thought at first that

  foo::first-page {page-break-before: always;}

would not work well, but since the proposed pseudo element matches the first page that selector’s box appears on and not (necessarily) the very first page of the document, it would work indeed.

The ‘::first-line’ pseudo-element may match the same line of glyphs for nested nodes, and it may span several (parts of) inline boxes. The first page a node’s box appears on, on the other hand, may be the same page a lot of ‘::first-page’ selectors would refer to, even from nodes only distantly related.

I wondered whether the ‘:first’ pseudo page selector <http://dev.w3.org/csswg/css3-page/#left-right-first> could be extended, instead, to make the common usecases possible:

  foo {page: bar; columns: 2;}
  @page bar:first {columns: 1;}

This, however, would require new ways of inheritance from a (named) page to boxes that appear on it and this wouldn’t be worth it.
Received on Wednesday, 26 October 2011 12:51:15 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:05 UTC