- From: Lea Verou <lea@verou.me>
- Date: Wed, 11 Sep 2013 19:45:06 +0200
- To: Simon Pieters <simonp@opera.com>
- Cc: Håkon Wium Lie <howcome@opera.com>, Brad Kemper <brad.kemper@gmail.com>, Alan Stearns <stearns@adobe.com>, www-style list <www-style@w3.org>
You're forgetting than an element might span multiple pages. We want to select the *fragment* that lies on a left/right page, hence, pseudoelement. -- Sent from my iPhone. Please excuse weird typos and/or terseness. On 11 Sep 2013, at 18:49, "Simon Pieters" <simonp@opera.com> wrote: > On Wed, 11 Sep 2013 17:12:34 +0200, Brad Kemper <brad.kemper@gmail.com> wrote: > >> On Sep 11, 2013, at 1:34 AM, Håkon Wium Lie <howcome@opera.com> wrote: >> >>> Two possible solutions are sketched here: >>> >>> http://dev.w3.org/csswg/css-gcpm/#page-and-column-pseudo-elements >>> >>> #1, building on pseudo-element: >>> >>> article::page(left) p { /* select all p elements that appear on left pages in an article */ >>> text-align: left; >>> } >> >> It actually feels more like a pseudo-class to me, though I can understand those who disagree. > > Yes, it should be a pseudo-class. In article:page(left) you want to select the article element itself, hence pseudo-class. > > -- > Simon Pieters > Opera Software
Received on Wednesday, 11 September 2013 17:41:35 UTC