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

Re: [css3-page] Flexbox or table algorithm for page-margin box layout

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 27 Mar 2013 10:32:33 +1300
Message-ID: <CAOp6jLa9rXvo9Yyn_1=GQWqxssGgrzBk8n7u-YmQidtYiJEUkQ@mail.gmail.com>
To: Simon Sapin <simon.sapin@exyr.org>
Cc: www-style@w3.org, Håkon Wium Lie <howcome@opera.com>
On Tue, Mar 26, 2013 at 10:14 PM, Simon Sapin <simon.sapin@exyr.org> wrote:

> So, the trick for centering the middle box is to have the same content in
> both other boxes, but hide one of them? What if you want different content
> in all three boxes? Let’s say page number, title, and date.
>

You could use multiple position:page-area elements for that, but you'd lose
some ability to avoid overlap.

If we need a more sophisticated layout model, e.g. the ability to center a
flex-item at some position relative to its parent if and only if there's
enough flexible space around it to do so, I suggest we add that to flexbox
where it could be generally useful instead of doing something special for
margin boxes.

Are the <div>s here only to express nesting, or do you mean actually taking
> elements from the document?


Elements in the document.

The current algorithm never makes the boxes overlap, if widths are 'auto':
> http://www.w3.org/TR/2013/WD-css3-page-20130314/#variable-sizing


If B is the width of the page area, then it must overlap A or C right?

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 Tuesday, 26 March 2013 21:33:02 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 21:33:03 GMT