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

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

From: Simon Sapin <simon.sapin@exyr.org>
Date: Mon, 25 Mar 2013 19:32:17 +0100
Message-ID: <51509831.6070109@exyr.org>
To: www-style list <www-style@w3.org>
Le 25/03/2013 18:53, Tab Atkins Jr. a écrit :
> On Mon, Mar 25, 2013 at 6:06 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
>> Is it possible with such a setup to have @top-center be centered by default,
>> even if all three boxes all have a different amount of content, but still
>> roughly distribute the space proportionally to the amount of content?
> These two constraints seem to be contradictory.

There are, hence the "roughly". This contradiction is actually the root 
of most of the complexity of the current page-margin box "variable 
dimension" algorithm.

> But no, you can't guarantee that the central item will be centered,
> unless you can guarantee that the two outer items are equal-size.

Not with flexbox, ok.

So it seems that we’re stuck with either:

1. Define a specific layout algorithm, as the current draft does.
2. Drop the promise that @top-center defaults to being centered, even 
with different amount of content in @top-right and @top-left.


Simon Sapin
Received on Monday, 25 March 2013 18:32:41 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:09 UTC