- From: Robert O'Callahan <robert@ocallahan.org>
- Date: Tue, 26 Mar 2013 11:43:03 +1300
- To: Håkon Wium Lie <howcome@opera.com>
- Cc: Simon Sapin <simon.sapin@exyr.org>, Julian Viereck <julian.viereck@googlemail.com>, www-style@w3.org
- Message-ID: <CAOp6jLZJpu7Etw=ZJhtm0BXjdBXLaynetYx0AGQPyurS3yNHZw@mail.gmail.com>
On Mon, Mar 25, 2013 at 10:45 PM, Håkon Wium Lie <howcome@opera.com> wrote: > Robert O'Callahan wrote: > > > I believe this would be more like > > @page :left div.pagenum { position: pagebox: > > left: 8%; top: 3%; > > content: counter(page) } > > @page :right div.pagenum { position: pagebox: > > right: 8%; top: 3%; > > content: counter(page) } > > Using positioning, you can get rid of the need to set text-align. > > That's shorter. Good. But you still don't align with the page area. > And people will run into overlap/overflow issues, as we know they do > with abspos. > As far as I can tell, the current language in the dev.w3.org spec would cause the title and page number to overlap under exactly the same conditions as the proposed positioning feature (i.e. when the width of the title plus twice the width of the page number are greater than the page area width). Going down this path, one requirement would be to position elements > wrt the page area -- I'd say that's an even more fundamental reference > than then page box. > That's a good idea. It would be simple enough to declare that position:pagebox makes top/left/right/bottom relative to the page area, and have authors use negative values to position margin-boxes. Of course, then it's possible the margin-boxes might overflow the margins, but if the margins aren't wide enough for the margin-box content then there's no way around that. Rob -- Wrfhf pnyyrq gurz gbtrgure naq fnvq, “Lbh xabj gung gur ehyref bs gur Tragvyrf ybeq vg bire gurz, naq gurve uvtu bssvpvnyf rkrepvfr nhgubevgl bire gurz. Abg fb jvgu lbh. Vafgrnq, jubrire jnagf gb orpbzr terng nzbat lbh zhfg or lbhe freinag, naq jubrire jnagf gb or svefg zhfg or lbhe fynir — whfg nf gur Fba bs Zna qvq abg pbzr gb or freirq, ohg gb freir, naq gb tvir uvf yvsr nf n enafbz sbe znal.” [Znggurj 20:25-28]
Received on Monday, 25 March 2013 22:43:35 UTC