W3C home > Mailing lists > Public > www-style@w3.org > November 2012

Re: [css3-page] Page-margin boxes layout

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Sun, 25 Nov 2012 01:28:08 +0100
Message-ID: <50B16618.6050001@kozea.fr>
To: MURAKAMI Shinyu <murakami@antenna.co.jp>
CC: fantasai <fantasai.lists@inkedblade.net>, Michael Day <mikeday@yeslogic.com>, Peter Moulder <peter.moulder@monash.edu>, WWW Style <www-style@w3.org>
Le 11/11/2012 20:33, MURAKAMI Shinyu a écrit :
> The large difference is that the existing spec has the rule “The sum
> of the outer widths of the three boxes is equal to max box width.” It
> means that when fit-content width is less than the available width
> the remaining space is distributed to the used widths.

I updated the algorithm based on this idea, although the exact rule is 
not the same.


While in the previous iteration the layout of page-margin boxes was
similar to floats, it is now closer to normal blocks.

The biggest change is that boxes with 'width: auto' tend to occupy all
of the available space, even if max-content is smaller than that.

Also, they do not always get at least min-content anymore. If a sentence
has one very long word that has to overflow, there is no reason that
other lines should be allowed to overflow too.

Lastly, this new algorithm should be saner when mixing auto and non-auto

Simon Sapin
Received on Sunday, 25 November 2012 00:28:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:23 UTC